django: Add keycloak realm roles in user permissions set
Keycloak also allow to define user roles at realm level to define permissions at a global level not tight to a client. Include these extra roles in the user permissions set from the decoded token content. Related to T3213
Showing
- swh/auth/django/utils.py 6 additions, 4 deletionsswh/auth/django/utils.py
- swh/auth/pytest_plugin.py 13 additions, 7 deletionsswh/auth/pytest_plugin.py
- swh/auth/tests/django/test_backends.py 16 additions, 10 deletionsswh/auth/tests/django/test_backends.py
- swh/auth/tests/django/test_utils.py 3 additions, 2 deletionsswh/auth/tests/django/test_utils.py
Loading
Please register or sign in to comment