From 6e832be2def64b042d5c2a402cc766b6974565a3 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 6 Nov 2021 13:04:41 +0100 Subject: [PATCH] core: fix auth_method for tokens Signed-off-by: Jens Langhammer --- authentik/core/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/core/auth.py b/authentik/core/auth.py index e8fc7eef9..86cda15fc 100644 --- a/authentik/core/auth.py +++ b/authentik/core/auth.py @@ -55,5 +55,5 @@ class TokenBackend(InbuiltBackend): if not tokens.exists(): return None token = tokens.first() - self.set_method("password", request, token=token) + self.set_method("token", request, token=token) return token.user