diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-11-05 09:56:36 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-11-05 09:56:36 +0200 |
commit | df351c2661cd838e1b7de521f1fcd4f84acdf4a0 (patch) | |
tree | 5ebbab360420bcd299d53ddd330b654fc67837e4 /qvisqve/token_router.py | |
parent | 5a74ba9553fd21465e04dd4ace7007e2f865d7f1 (diff) | |
download | qvisqve-df351c2661cd838e1b7de521f1fcd4f84acdf4a0.tar.gz |
Add: sub fields to clients, tokens created by client-cred grant
Diffstat (limited to 'qvisqve/token_router.py')
-rw-r--r-- | qvisqve/token_router.py | 3 |
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', |