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
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment