diff --git a/authentik/flows/views.py b/authentik/flows/views.py index cd42f77a1..027793b8b 100644 --- a/authentik/flows/views.py +++ b/authentik/flows/views.py @@ -161,7 +161,7 @@ class FlowExecutorView(APIView): @extend_schema( responses={200: Challenge()}, - request=ChallengeResponse(), + request=OpenApiTypes.OBJECT, parameters=[ OpenApiParameter( name="query", diff --git a/schema.yml b/schema.yml index 7bb89544f..f53d343b4 100644 --- a/schema.yml +++ b/schema.yml @@ -3198,6 +3198,20 @@ paths: required: true tags: - flows + requestBody: + content: + application/json: + schema: + type: object + additionalProperties: {} + application/x-www-form-urlencoded: + schema: + type: object + additionalProperties: {} + multipart/form-data: + schema: + type: object + additionalProperties: {} security: - authentik: [] - cookieAuth: [] diff --git a/web/src/flows/FlowExecutor.ts b/web/src/flows/FlowExecutor.ts index b190d328b..7b8d3785d 100644 --- a/web/src/flows/FlowExecutor.ts +++ b/web/src/flows/FlowExecutor.ts @@ -114,7 +114,7 @@ export class FlowExecutor extends LitElement implements StageHost { this.loading = true; return new FlowsApi(DEFAULT_CONFIG).flowsExecutorSolveRaw({ flowSlug: this.flowSlug, - data: formData || {}, + requestBody: formData || {}, query: window.location.search.substring(1), }).then((challengeRaw) => { return challengeRaw.raw.json();