Infer User.name from OpenID UserInfo.name (#3674)

Signed-off-by: YanzheL <lee.yanzhe@yanzhe.org>
pull/3679/head
Yanzhe Lee 2020-01-27 10:15:06 +08:00 committed by 老广
parent b227d9cdc1
commit 29730757b8
1 changed files with 2 additions and 1 deletions

View File

@ -160,7 +160,8 @@ class Client(object):
defaults={
'email': userinfo.get('email', ''),
'first_name': userinfo.get('given_name', ''),
'last_name': userinfo.get('family_name', '')
'last_name': userinfo.get('family_name', ''),
'name': userinfo.get('name', '')
}
)
oidt_profile = OpenIDTokenProfile(