Print out claims
This commit is contained in:
parent
59d5af5d37
commit
37540a3605
1 changed files with 9 additions and 0 deletions
|
|
@ -1,5 +1,7 @@
|
|||
import os
|
||||
|
||||
from oauth2_authcodeflow.conf import get_default_django_username
|
||||
|
||||
from .base import *
|
||||
|
||||
|
||||
|
|
@ -28,3 +30,10 @@ OIDC_RP_CLIENT_ID = os.environ.get("OIDC_CLIENT_ID")
|
|||
OIDC_RP_CLIENT_SECRET = os.environ.get("OIDC_CLIENT_SECRET")
|
||||
|
||||
OIDC_OP_DISCOVERY_DOCUMENT_URL = "https://gitea.gwairfelin.com/.well-known/openid-configuration"
|
||||
|
||||
|
||||
def get_username(claims):
|
||||
print(claims)
|
||||
get_default_django_username(claims)
|
||||
|
||||
OIDC_DJANGO_USERNAME_FUNC = get_username
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue