fix scope in /oauth/token
This commit is contained in:
parent
82d52ec0ae
commit
3f7900f07e
|
@ -78,10 +78,10 @@ def token():
|
||||||
|
|
||||||
res = {
|
res = {
|
||||||
"access_token": oauth_token.access_token,
|
"access_token": oauth_token.access_token,
|
||||||
"token_type": "bearer",
|
"token_type": "Bearer",
|
||||||
"expires_in": 3600,
|
"expires_in": 3600,
|
||||||
"scope": "",
|
"scope": auth_code.scope,
|
||||||
"user": user_data,
|
"user": user_data, # todo: remove this
|
||||||
}
|
}
|
||||||
|
|
||||||
if oauth_token.scope and Scope.OPENID.value in oauth_token.scope:
|
if oauth_token.scope and Scope.OPENID.value in oauth_token.scope:
|
||||||
|
|
Loading…
Reference in a new issue