accept token auth on /hub/user/... which are probably requests to non-running servers

otherwise, requests get redirected to `/hub/login` instead of failing with 404/503
This commit is contained in:
Min RK
2021-12-20 13:37:47 +01:00
parent 2ec722d3af
commit 36cb1df27e

View File

@@ -1381,6 +1381,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(