Skip to content

Support JWK Selection Strategy in NimbusJwtEncoder #16570

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

Merged
merged 2 commits into from
Feb 18, 2025

Conversation

douxiaofeng99
Copy link
Contributor

Signed-off-by: douxiaofeng99 [email protected]

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 11, 2025
@jzheaux jzheaux changed the title closes gh-16170 Support JWK Selection Strategy in NimbusJwtEncoder Feb 13, 2025
Copy link
Contributor

@jzheaux jzheaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @douxiaofeng99! I've left some feedback inline.

Also, will you please format your commit message with a title and a closes message like so:

Support JWK Selection Strategy

Closes gh-16170

@jzheaux jzheaux self-assigned this Feb 13, 2025
@jzheaux jzheaux added type: enhancement A general enhancement in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 13, 2025
@jzheaux jzheaux added this to the 6.5.x milestone Feb 13, 2025
douxiaofeng99 and others added 2 commits February 14, 2025 09:36
Make so that it runs only when selection is needed.
Require the provided selector be non-null.
Add Tests.

Issue spring-projectsgh-16170
@douxiaofeng99
Copy link
Contributor Author

@jzheaux, Thanks you very much!

@jzheaux jzheaux merged commit 6793334 into spring-projects:main Feb 18, 2025
6 checks passed
@jzheaux
Copy link
Contributor

jzheaux commented Feb 18, 2025

Thanks, @douxiaofeng99! This is now merged into main. I added a polish commit, mostly to adjust style and add tests. I also changed the logic so that the selector is called only when there is more than one JWK in the results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants