summaryrefslogtreecommitdiff
path: root/qvisqve/authn_entity_manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'qvisqve/authn_entity_manager.py')
-rw-r--r--qvisqve/authn_entity_manager.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/qvisqve/authn_entity_manager.py b/qvisqve/authn_entity_manager.py
index f84634c..e3d454a 100644
--- a/qvisqve/authn_entity_manager.py
+++ b/qvisqve/authn_entity_manager.py
@@ -71,6 +71,15 @@ class ClientManager(AuthenticatingEntityManager):
def __init__(self, rs):
super().__init__(rs, 'client')
+ def get_subject(self, username):
+ user = self.get(username)
+ return user.get('sub')
+
+ def set_subject(self, username, sub):
+ user = self.get(username)
+ user['sub'] = sub
+ self.create(username, user)
+
class UserManager(AuthenticatingEntityManager):