Skip to content
Snippets Groups Projects
Commit 89d4166c authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Add an interface that allows customizing the user roles

This adds UserRolesInterface which is used for converting the
oauth2 scopes to symfony roles.

The default interface implementation converts them to "ROLE_SCOPE_FOO".

The interface also gets passed the user ID and can fetch roles from other
places as well, like LDAP, or ignore the scopes etc.

Fixes #4
parent 381e6cf2
No related branches found
No related tags found
No related merge requests found
Pipeline #57313 passed