@ -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
|
||||
|
18
schema.yml
18
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'
|
||||
|
Reference in New Issue
Block a user