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

GH-15201 Introduce ExpressionJwtGrantedAuthoritiesConverter to extract nested authorities via SpEL expression #15202

Conversation

thomasdarimont
Copy link
Contributor

This helps to reduce custom code necessary to extract roles from deeply nested claims.

Fixes #15201

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 4, 2024
@sjohnr sjohnr added type: enhancement A general enhancement in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) labels Jun 13, 2024
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 for the PR, @thomasdarimont! And for your patience as I got around to it. I've left a piece of feedback inline.

@thomasdarimont thomasdarimont force-pushed the issue/GH-15201-jwt-nested-authorities branch from 20a08b7 to 204d74e Compare September 17, 2024 22:37
@thomasdarimont thomasdarimont changed the title GH-15201 Support extracting nested authorities in JwtGrantedAuthoritiesConverter GH-15201 Introduce ExpressionJwtGrantedAuthoritiesConverter to extracting nested authorities with an expression Sep 17, 2024
@thomasdarimont thomasdarimont changed the title GH-15201 Introduce ExpressionJwtGrantedAuthoritiesConverter to extracting nested authorities with an expression GH-15201 Introduce ExpressionJwtGrantedAuthoritiesConverter to extract nested authorities via SpEL expression Sep 17, 2024
@thomasdarimont thomasdarimont force-pushed the issue/GH-15201-jwt-nested-authorities branch 3 times, most recently from 4df49bd to b72f116 Compare September 18, 2024 14:46
@thomasdarimont
Copy link
Contributor Author

Tried to make checkstyle happy.

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 for the updates, @thomasdarimont! I've left some feedback additional inline; thanks for taking a look.

@thomasdarimont thomasdarimont force-pushed the issue/GH-15201-jwt-nested-authorities branch 3 times, most recently from d77ef40 to 3e96b56 Compare September 18, 2024 21:31
@jzheaux jzheaux removed the status: waiting-for-triage An issue we've not yet triaged label Sep 23, 2024
…ith an expression

This helps to reduce custom code necessary to extract roles from deeply
nested claims.

Closes spring-projects#15201

Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>
@jzheaux jzheaux force-pushed the issue/GH-15201-jwt-nested-authorities branch from 3e96b56 to 6a7f2f1 Compare September 23, 2024 23:18
@jzheaux jzheaux added this to the 6.4.0-RC1 milestone Sep 23, 2024
@jzheaux jzheaux merged commit b06c40d into spring-projects:main Sep 24, 2024
6 checks passed
@jzheaux
Copy link
Contributor

jzheaux commented Sep 24, 2024

Thanks, @thomasdarimont! This is now merged into main.

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
Archived in project
Development

Successfully merging this pull request may close these issues.

Support extracting nested authorities in JwtGrantedAuthoritiesConverter
4 participants