From ada24a609a70e0470f3a4ab5e5bc718039fc6d6e Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 25 Jul 2023 13:05:54 +0200 Subject: [PATCH] fix context Signed-off-by: Jens Langhammer --- authentik/stages/authenticator_mobile/stage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/stages/authenticator_mobile/stage.py b/authentik/stages/authenticator_mobile/stage.py index 002b6cd5b..79a7ca5cd 100644 --- a/authentik/stages/authenticator_mobile/stage.py +++ b/authentik/stages/authenticator_mobile/stage.py @@ -58,7 +58,7 @@ class AuthenticatorMobileStageView(ChallengeStageView): # TODO: use cloud gateway? "u": self.request.get_host(), "s": str(stage.stage_uuid), - "t": self.executor.plan[FLOW_PLAN_MOBILE_ENROLL].token, + "t": self.executor.plan.context[FLOW_PLAN_MOBILE_ENROLL].token, } ) payload.is_valid()