Note: The default ITS GitLab runner is a shared resource and is subject to slowdowns during heavy usage.
You can run your own GitLab runner that is dedicated just to your group if you need to avoid processing delays.

Commit 4d19bbab authored by Patrick Steffes's avatar Patrick Steffes
Browse files

import from

parent 3d08c082
......@@ -13,7 +13,7 @@ pip install git+
Follow the djangorestframework-simplejwt [Getting Started]( guide for the base django configuration.
The only change necessary is to update the configuration to import this packages OIDCTokenObtainPairView as follows.
Update the configuration to import this packages OIDCTokenObtainPairView as follows.
from django.urls import include, path
......@@ -26,6 +26,13 @@ urlpatterns = [
Set the following in
## Usage
The token endpoint replaces basic auth and expects an `idp_access_token`
from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.auth.backends import BaseBackend
from rest_framework import exceptions
import logging
import requests
logger = logging.getLogger(__name__)
UserModel = get_user_model()
......@@ -18,13 +17,12 @@ class OIDCTokenBackend(BaseBackend):
Returns a 'User' if a correct access_token has been supplied
after verifying via the OIDC UserInfo endpoint.
"""'request={request} iat={idp_access_token}')
response = requests.get(
headers = {'Authorization': f'Bearer {idp_access_token}'},
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment