fix alloauth
All checks were successful
Docker / build (release) Successful in 9s

This commit is contained in:
krek0 2026-05-16 20:09:23 +02:00
parent 1de1cb4086
commit b386525e0c
10 changed files with 51 additions and 15 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):