-
Notifications
You must be signed in to change notification settings - Fork 59
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
feat: algorithm to initial keys #248
Conversation
It looks like this doesn't affect the keys being pulled in via the initial keys file? Those are parsed directly in https://github.com/navikt/mock-oauth2-server/blob/master/src/main/kotlin/no/nav/security/mock/oauth2/token/KeyProvider.kt#L57 Do the init key files need to have the algorithm in them? |
Adding those into the json files seems to work for me, but I don't fully comprehend the consequence of that or if all the RSA keys in there are actually RS256, and the EC ones are ES256? |
😅 I forgot about the files.. but yes, should be ok, adding some! |
yes. simple as that. It seems like position of "alg" in the jwk mathers for nimbus to be able parse the key properly. Should be ok now @loosebazooka 👍🏾 |
I'll try it out! |
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.
lgtm, works in my tests :D
Great! 🚢 it |
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.
LGTM
No description provided.