fix oauth
All checks were successful
Docker / build (release) Successful in 8s

This commit is contained in:
krek0 2026-05-16 20:00:23 +02:00
parent 1de1cb4086
commit 9ba43950b8
9 changed files with 39 additions and 13 deletions

View file

@ -18,14 +18,12 @@ class OAuthProvider(OAuth2Provider):
account_class = OAuthAccount
def extract_uid(self, data):
return str(data["username"])
return str(data["preferred_username"])
def extract_common_fields(self, data):
return dict(
email=data.get("email"),
username=data.get("username"),
last_name=data.get("last_name"),
first_name=data.get("first_name"),
username=data.get("preferred_username"),
)
def get_default_scope(self):