store tokens passed via url or header, not only url.

This commit is contained in:
chang-zhijie
2018-12-11 17:00:16 +08:00
parent 8b0bdc71bc
commit 53c3201c17

View File

@@ -852,8 +852,8 @@ class HubAuthenticated(object):
self._hub_auth_user_cache = None
raise
# store ?token=... tokens passed via url in a cookie for future requests
url_token = self.get_argument('token', '')
# store tokens passed via url or header in a cookie for future requests
url_token = self.hub_auth.get_token(self)
if (
user_model
and url_token