fix scope in /oauth/token

This commit is contained in:
Son NK 2019-08-11 00:28:50 +02:00
parent 82d52ec0ae
commit 3f7900f07e
1 changed files with 3 additions and 3 deletions

View File

@ -78,10 +78,10 @@ def token():
res = {
"access_token": oauth_token.access_token,
"token_type": "bearer",
"token_type": "Bearer",
"expires_in": 3600,
"scope": "",
"user": user_data,
"scope": auth_code.scope,
"user": user_data, # todo: remove this
}
if oauth_token.scope and Scope.OPENID.value in oauth_token.scope: