mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-16 22:43:00 +00:00
call base handler self.authenticate instead of accessing authenticator directly
This commit is contained in:
@@ -242,7 +242,7 @@ class UserTokenListAPIHandler(APIHandler):
|
||||
# defer to Authenticator for identifying the user
|
||||
# can be username+password or an upstream auth token
|
||||
try:
|
||||
name = await self.authenticator.authenticate(self, body.get('auth'))
|
||||
name = await self.authenticate(body.get('auth'))
|
||||
if isinstance(name, dict):
|
||||
# not a simple string so it has to be a dict
|
||||
name = name.get('name')
|
||||
|
Reference in New Issue
Block a user