summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-07-17 13:27:56 +0300
committerLars Wirzenius <liw@liw.fi>2018-07-17 15:32:45 +0300
commit9bcc20773dc96bfab159ddccf58c9db39d278ac6 (patch)
tree479cccc95d22b558db7c86c13277fc6ba1018fef
parent42ed465591e0647542c7ff783a603325d1da7c6d (diff)
downloadqvisqve-9bcc20773dc96bfab159ddccf58c9db39d278ac6.tar.gz
Change: casing of Bearer, add expires_in
-rw-r--r--qvisqve/token_router.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/qvisqve/token_router.py b/qvisqve/token_router.py
index b5f30fe..dd01587 100644
--- a/qvisqve/token_router.py
+++ b/qvisqve/token_router.py
@@ -99,7 +99,7 @@ class ClientCredentialsGrant(Grant):
token = self._generator.new_token(client_id, scope)
return qvisqve.ok_response({
'access_token': token,
- 'token_type': 'bearer',
+ 'token_type': 'Bearer',
'scope': scope,
})
@@ -122,7 +122,8 @@ class AuthorizationCodeGrant(Grant):
empty_token = self._generator.new_token('', '')
return qvisqve.ok_response({
'access_token': empty_token,
- 'token_type': 'bearer',
+ 'token_type': 'Bearer',
+ 'expires_in': 3600, # FIXME expiration time
'scope': '',
})