Skip to content

Commit

Permalink
Merge pull request jupyterhub#3731 from minrk/allow-token-auth-user-url
Browse files Browse the repository at this point in the history
accept token auth on `/hub/user/...`
  • Loading branch information
consideRatio authored Dec 20, 2021
2 parents 11efebf + 36cb1df commit 225ca90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jupyterhub/handlers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1382,6 +1382,9 @@ class UserUrlHandler(BaseHandler):
Note that this only occurs if bob's server is not already running.
"""

# accept token auth for API requests that are probably to non-running servers
_accept_token_auth = True

def _fail_api_request(self, user_name='', server_name=''):
"""Fail an API request to a not-running server"""
self.log.warning(
Expand Down

0 comments on commit 225ca90

Please sign in to comment.