mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-12 04:23:01 +00:00
put whole user model in cookie
ensures cached value has all the info needed (group, etc.)
This commit is contained in:
@@ -462,7 +462,7 @@ class HubOAuth(HubAuth):
|
|||||||
kwargs['secure'] = True
|
kwargs['secure'] = True
|
||||||
# if self.subdomain_host:
|
# if self.subdomain_host:
|
||||||
# kwargs['domain'] = self.domain
|
# 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",
|
app_log.debug("Setting oauth cookie for %s: %s, %s",
|
||||||
handler.request.remote_ip, self.cookie_name, kwargs)
|
handler.request.remote_ip, self.cookie_name, kwargs)
|
||||||
handler.set_secure_cookie(
|
handler.set_secure_cookie(
|
||||||
|
Reference in New Issue
Block a user