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={