summaryrefslogtreecommitdiff
path: root/qvisqve/token_router.py
diff options
context:
space:
mode:
Diffstat (limited to 'qvisqve/token_router.py')
-rw-r--r--qvisqve/token_router.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/qvisqve/token_router.py b/qvisqve/token_router.py
index 4778063..bd3744c 100644
--- a/qvisqve/token_router.py
+++ b/qvisqve/token_router.py
@@ -106,7 +106,8 @@ class ClientCredentialsGrant(Grant):
if s in allowed
)
- token = self._generator.new_token(client_id, scope)
+ sub = self._clients.get_subject(client_id)
+ token = self._generator.new_token(client_id, scope, subject_id=sub)
return qvisqve.ok_response({
'access_token': token,
'token_type': 'Bearer',