mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 23:13: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
|
# defer to Authenticator for identifying the user
|
||||||
# can be username+password or an upstream auth token
|
# can be username+password or an upstream auth token
|
||||||
try:
|
try:
|
||||||
name = await self.authenticator.authenticate(self, body.get('auth'))
|
name = await self.authenticate(body.get('auth'))
|
||||||
if isinstance(name, dict):
|
if isinstance(name, dict):
|
||||||
# not a simple string so it has to be a dict
|
# not a simple string so it has to be a dict
|
||||||
name = name.get('name')
|
name = name.get('name')
|
||||||
|
Reference in New Issue
Block a user