From eed958b13240058761333a00fafbdc2353964928 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 5 Sep 2022 22:00:02 +0200 Subject: [PATCH] stages/authenticator_duo: fix schema not declaring request body correctly Signed-off-by: Jens Langhammer --- authentik/stages/authenticator_duo/api.py | 1 + schema.yml | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/authentik/stages/authenticator_duo/api.py b/authentik/stages/authenticator_duo/api.py index aed4e0c0a..12053737a 100644 --- a/authentik/stages/authenticator_duo/api.py +++ b/authentik/stages/authenticator_duo/api.py @@ -102,6 +102,7 @@ class AuthenticatorDuoStageViewSet(UsedByMixin, ModelViewSet): name="username", type=OpenApiTypes.STR, location=OpenApiParameter.QUERY ), ], + request=None, responses={ 204: OpenApiResponse(description="Enrollment successful"), 400: OpenApiResponse(description="Device exists already"), diff --git a/schema.yml b/schema.yml index a99b9557e..8158744f6 100644 --- a/schema.yml +++ b/schema.yml @@ -15108,12 +15108,6 @@ paths: type: string tags: - stages - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AuthenticatorDuoStageRequest' - required: true security: - authentik: [] responses: