-
- Downloads
auth/backends: Simplify and improve OIDC authentication
No need to query the userinfo endpoint of the OIDC server when authenticating as those information can also be found in the decoded access token. Use more reliable access token expiration date. Check groups claim is provided in decoded token before trying to read it.
parent
97c4e243
No related branches found
No related tags found
Showing
- swh/web/auth/backends.py 35 additions, 54 deletionsswh/web/auth/backends.py
- swh/web/auth/models.py 3 additions, 3 deletionsswh/web/auth/models.py
- swh/web/auth/views.py 1 addition, 1 deletionswh/web/auth/views.py
- swh/web/tests/auth/keycloak_mock.py 7 additions, 3 deletionsswh/web/tests/auth/keycloak_mock.py
- swh/web/tests/auth/test_backends.py 15 additions, 28 deletionsswh/web/tests/auth/test_backends.py
Loading
-
mentioned in merge request !274 (closed)
-
mentioned in merge request !275 (closed)
-
mentioned in merge request !276 (closed)
-
mentioned in merge request !277 (closed)
Please register or sign in to comment