Set preferred username properly
This commit is contained in:
parent
9c4097f7a0
commit
382cdc74b5
1 changed files with 1 additions and 2 deletions
|
|
@ -33,7 +33,6 @@ OIDC_OP_DISCOVERY_DOCUMENT_URL = "https://gitea.gwairfelin.com/.well-known/openi
|
|||
|
||||
|
||||
def get_username(claims):
|
||||
raise Exception(claims)
|
||||
return get_default_django_username(claims)
|
||||
return claims["preferred_username"]
|
||||
|
||||
OIDC_DJANGO_USERNAME_FUNC = get_username
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue