-
Notifications
You must be signed in to change notification settings - Fork 47
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
Update and clarify JWT docs #6964
Comments
Hi @ayoho - the updated draft is ready for review when you have a chance Let me know what edits are needed. One question I have is whether dynamically produced JWKs produce JWKS doc. The way the topic is structured now its unclear. |
Peer ReviewTherefore, when you set Q: from what I understood In this example, the JWT consumers can retrieve JSON Web Key Set (JWKS) documents to reconstruct public keys to verify token signatures. To configure Open Liberty to verify token signatures with JWKs, set the |
Thanks @ramkumar-k-9286, all suggestions implemented |
One thing I just noticed. Under See also JSON Web Token feature |
thanks, fixed |
for security defect OpenLiberty/open-liberty#26453
Clarify the expiresInSeconds attribute in jwtBuilder defaults to the value of the expiry attribute if expiresInSeconds is set to a negative value.
Using the configured keystore/key alias to generate a consistent JWK
If customers want keys to be consistent across Liberty servers and/or across server reboots, they can configure the keyStoreRef and keyAlias attributes to point to a specific keypair. The default JWK endpoint provided by Liberty (https://<host_name>:<ssl_port>/jwt/ibm/api/<jwtBuilder_configuration_id>/jwk) will still produce a JWK document but will use the public key pointed to by those configuration attributes to create a JWK representation of the key to send back.
JWK creation and rotation
The keys get recalculated/rotated every 12 hours by default in the case jwkEnabled="true".
The keys get generated when creating the token, or when the JWK endpoint is invoked (whichever happens first).
The same keys are used for all tokens created by the same JWT builder.
Clarify kid usage
The text was updated successfully, but these errors were encountered: