Skip to content

OAuth role mapping: allow use of Spring authorities #1014

@jquirymateco

Description

@jquirymateco

Issue submitter TODO list

  • I've searched for an already existing issues here
  • I'm running a supported version of the application which is listed here and the feature is not present there

Is your proposal related to a problem?

For the role matching, it is only possible to provide a roles-field which matches the principal's attributes (ID token claims), it is not possible to use Spring's default authorities.

Describe the feature you're interested in

It should also be possible to match against the user's authorities mapped through the access token by Spring (DefaultReactiveOAuth2UserService) because authorities are used to assign roles.

Describe alternatives you've considered

I couls add a claim to the ID token to make it work without change but that's a hack.

Version you're running

8e8ff06

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions