This commit is contained in:
parent
1de1cb4086
commit
9ba43950b8
9 changed files with 39 additions and 13 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue