-
Notifications
You must be signed in to change notification settings - Fork 304
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
PAYARA-3824 Use KeyID from JWT header to find public key in JSON Web Key Set #3799
Conversation
Jenkins test please |
LGTM, Need to test with MP TCK Runner. |
Jenkins test MicroProfile |
1 similar comment
Jenkins test MicroProfile |
@MeroRai |
Pass the MircoProfile TCK on the Payara Server. Although the TCK Runner will need to be updated for this PR to pass the test. I believe @jGauravGupta already did it but it has been revert back. |
Fixes #3795 |
Need to make sure both repos are updated at the same time. |
Jenkins test please |
jenkins test please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally and passed MPTCKs with TEST-198's changes (#4054 and payara/MicroProfile-TCK-Runners#44)
jenkins test please |
1 similar comment
jenkins test please |
I apologise, it was due to trying to resolve the conflicts using GitHub, which didn't save properly.
jenkins test please |
This patch will use the KeyID
kid
header field (if present) from the JSON web token to find the matching public key in a JSON Web Key Set (JWKS) array. If there is no KeyID, then the first key entry will be used just like before.Following changes:
JwtTokenParser.java
so that I can access the JWT header without having to parse theSignedJWT
twice.keyID
down to thecreatePublicKeyFromJWKS
method in order to be able to find the matching JWK.