fix scope in /oauth/token

This commit is contained in:
Son NK 2019-08-11 00:28:50 +02:00
parent 82d52ec0ae
commit 3f7900f07e

View file

@ -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: