Just raise a fucking exception then
This commit is contained in:
parent
37540a3605
commit
9c4097f7a0
1 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ OIDC_OP_DISCOVERY_DOCUMENT_URL = "https://gitea.gwairfelin.com/.well-known/openi
|
||||||
|
|
||||||
|
|
||||||
def get_username(claims):
|
def get_username(claims):
|
||||||
print(claims)
|
raise Exception(claims)
|
||||||
get_default_django_username(claims)
|
return get_default_django_username(claims)
|
||||||
|
|
||||||
OIDC_DJANGO_USERNAME_FUNC = get_username
|
OIDC_DJANGO_USERNAME_FUNC = get_username
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue