From c2aa7f1748f8c4aee6b32911ec47cefee4579ab6 Mon Sep 17 00:00:00 2001 From: Gerhard Weis Date: Tue, 27 Nov 2018 06:41:36 +1000 Subject: [PATCH] call base handler self.authenticate instead of accessing authenticator directly --- jupyterhub/apihandlers/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyterhub/apihandlers/users.py b/jupyterhub/apihandlers/users.py index 7ec20e57..29513f78 100644 --- a/jupyterhub/apihandlers/users.py +++ b/jupyterhub/apihandlers/users.py @@ -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')