From ff6a68112e328c6b45ac002d977f417e0870337a Mon Sep 17 00:00:00 2001 From: Min RK Date: Thu, 30 Mar 2017 16:52:20 +0200 Subject: [PATCH] put whole user model in cookie ensures cached value has all the info needed (group, etc.) --- jupyterhub/services/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyterhub/services/auth.py b/jupyterhub/services/auth.py index 7ce3e186..9eed189f 100644 --- a/jupyterhub/services/auth.py +++ b/jupyterhub/services/auth.py @@ -462,7 +462,7 @@ class HubOAuth(HubAuth): kwargs['secure'] = True # if self.subdomain_host: # kwargs['domain'] = self.domain - cookie_value = json.dumps({'name': user_model['name']}) + cookie_value = json.dumps(user_model) app_log.debug("Setting oauth cookie for %s: %s, %s", handler.request.remote_ip, self.cookie_name, kwargs) handler.set_secure_cookie(