From 9bcc20773dc96bfab159ddccf58c9db39d278ac6 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 17 Jul 2018 13:27:56 +0300 Subject: Change: casing of Bearer, add expires_in --- qvisqve/token_router.py | 5 +++-- 1 file 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': '', }) -- cgit v1.2.1