From 9d0a7578ecdc7f8b981eae0df9e76bdee88be8d0 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 27 Oct 2022 20:04:00 +0200 Subject: [PATCH] flows: fix error due to not validating error challenge Signed-off-by: Jens Langhammer --- authentik/flows/views/executor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/authentik/flows/views/executor.py b/authentik/flows/views/executor.py index a1f800b75..4b55fcbb6 100644 --- a/authentik/flows/views/executor.py +++ b/authentik/flows/views/executor.py @@ -253,9 +253,9 @@ class FlowExecutorView(APIView): action=EventAction.SYSTEM_EXCEPTION, message=exception_to_string(exc), ).from_http(self.request) - return to_stage_response( - self.request, HttpChallengeResponse(FlowErrorChallenge(self.request, exc)) - ) + challenge = FlowErrorChallenge(self.request, exc) + challenge.is_valid() + return to_stage_response(self.request, HttpChallengeResponse(challenge)) @extend_schema( responses={