JwtAuthenticationConverter should allow for configuring the principal claim #8186
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
type: enhancement
A general enhancement
Milestone
Related to #6865 and #7834
It's quite common for authorization servers to use the
sub
claim to refer to an internal user id. An example of this is Amazon Cognito. As such, it can be useful to introduce a custom claim to refer to a user id that resource servers will understand.Configuring Resource Server to use a custom principal claim name currently looks like:
By introducing something like
setPrincipalClaimName
, it could become:The text was updated successfully, but these errors were encountered: