From eb87941f61b78fb7c64e58dcec4388e9ece99e52 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 20 Aug 2024 13:23:23 +0200 Subject: [PATCH] fix more Signed-off-by: Jens Langhammer --- authentik/flows/views/executor.py | 3 ++- schema.yml | 18 ------------------ 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/authentik/flows/views/executor.py b/authentik/flows/views/executor.py index ad2eac6b05..9bbc3dafdd 100644 --- a/authentik/flows/views/executor.py +++ b/authentik/flows/views/executor.py @@ -31,6 +31,7 @@ from authentik.flows.challenge import ( ChallengeResponse, FlowErrorChallenge, HttpChallengeResponse, + LoginChallenge, RedirectChallenge, ShellChallenge, WithUserInfoChallenge, @@ -78,7 +79,7 @@ def challenge_types(): subclasses of Challenge, and Challenge itself.""" mapping = {} for cls in all_subclasses(Challenge): - if cls == WithUserInfoChallenge: + if cls in [WithUserInfoChallenge, LoginChallenge]: continue mapping[cls().fields["component"].default] = cls return mapping diff --git a/schema.yml b/schema.yml index d03eaf9d43..8515a60fe0 100644 --- a/schema.yml +++ b/schema.yml @@ -42978,7 +42978,6 @@ components: - $ref: '#/components/schemas/FlowErrorChallenge' - $ref: '#/components/schemas/FrameChallenge' - $ref: '#/components/schemas/IdentificationChallenge' - - $ref: '#/components/schemas/LoginChallenge' - $ref: '#/components/schemas/OAuthDeviceCodeChallenge' - $ref: '#/components/schemas/OAuthDeviceCodeFinishChallenge' - $ref: '#/components/schemas/PasswordChallenge' @@ -43008,8 +43007,6 @@ components: ak-stage-flow-error: '#/components/schemas/FlowErrorChallenge' xak-flow-frame: '#/components/schemas/FrameChallenge' ak-stage-identification: '#/components/schemas/IdentificationChallenge' - ? '' - : '#/components/schemas/LoginChallenge' ak-provider-oauth2-device-code: '#/components/schemas/OAuthDeviceCodeChallenge' ak-provider-oauth2-device-code-finish: '#/components/schemas/OAuthDeviceCodeFinishChallenge' ak-stage-password: '#/components/schemas/PasswordChallenge' @@ -47931,21 +47928,6 @@ components: - debug - notset type: string - LoginChallenge: - type: object - description: Base class for extended login challenges - properties: - flow_info: - $ref: '#/components/schemas/ContextualFlowInfo' - component: - type: string - default: '' - response_errors: - type: object - additionalProperties: - type: array - items: - $ref: '#/components/schemas/ErrorDetail' LoginChallengeTypes: oneOf: - $ref: '#/components/schemas/RedirectChallenge'