Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Calculate KID if missing using RFC7638 #147

Open
cydergoth opened this issue Oct 14, 2021 · 1 comment
Open

Feature Request: Calculate KID if missing using RFC7638 #147

cydergoth opened this issue Oct 14, 2021 · 1 comment

Comments

@cydergoth
Copy link

Summary

KIDs may be calculated from the key information using RFC7638
https://datatracker.ietf.org/doc/html/rfc7638

Steps to reproduce

Sign a JWT without specifying the KID

Expected behavior

KID is automatically calculated and injected

@codedust
Copy link
Contributor

Since this library currently does not support the JWK format, an alternative would be to calculate the kid from an X.509 certificate as suggested by the ETSI JAdES specification:

The content of kid header parameter shall be the base64 (IETF RFC 4648) encoding of one DER-encoded instance of type IssuerSerial type defined in IETF RFC 5035.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants