Dedicated API for extracting roles from Oidc User flow #5349
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
type: enhancement
A general enhancement
Summary
Today, in order to extract Spring Security roles from custom role representations in the Oidc User flow, code needs to fall back to implementing an
OAuth2UserService
:This follows from the reference documentation [1].
Would be nice to have a dedicated authorities extractor:
[1] - https://docs.spring.io/spring-security/site/docs/5.0.5.RELEASE/reference/htmlsingle/#oauth2login-advanced-map-authorities-oauth2userservice
Additional Info
This is born out of some observations from @thomasdarimont in a OAuth github sample.
The text was updated successfully, but these errors were encountered: