mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 23:13:00 +00:00
store tokens passed via url or header, not only url.
This commit is contained in:
@@ -852,8 +852,8 @@ class HubAuthenticated(object):
|
|||||||
self._hub_auth_user_cache = None
|
self._hub_auth_user_cache = None
|
||||||
raise
|
raise
|
||||||
|
|
||||||
# store ?token=... tokens passed via url in a cookie for future requests
|
# store tokens passed via url or header in a cookie for future requests
|
||||||
url_token = self.get_argument('token', '')
|
url_token = self.hub_auth.get_token(self)
|
||||||
if (
|
if (
|
||||||
user_model
|
user_model
|
||||||
and url_token
|
and url_token
|
||||||
|
Reference in New Issue
Block a user