From b136d3bc694dea7e56ded980c23a12a44312969b Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 16 Apr 2021 22:56:44 +0200 Subject: [PATCH] flows: annotate flows executor 404 error Signed-off-by: Jens Langhammer --- authentik/flows/views.py | 1 + swagger.yaml | 8 ++++---- web/src/flows/FlowExecutor.ts | 10 +++++----- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/authentik/flows/views.py b/authentik/flows/views.py index f291d39f0..ffaf19748 100644 --- a/authentik/flows/views.py +++ b/authentik/flows/views.py @@ -127,6 +127,7 @@ class FlowExecutorView(APIView): @swagger_auto_schema( responses={ 200: Challenge(), + 404: "No Token found" # This error can be raised by the email stage }, request_body=no_body, manual_parameters=[ diff --git a/swagger.yaml b/swagger.yaml index e83b9edc3..ab213512a 100755 --- a/swagger.yaml +++ b/swagger.yaml @@ -3664,15 +3664,15 @@ paths: description: '' schema: $ref: '#/definitions/Challenge' - '403': - description: Authentication credentials were invalid, absent or insufficient. - schema: - $ref: '#/definitions/GenericError' '404': description: Object does not exist or caller has insufficient permissions to access it. schema: $ref: '#/definitions/APIException' + '403': + description: Authentication credentials were invalid, absent or insufficient. + schema: + $ref: '#/definitions/GenericError' tags: - flows post: diff --git a/web/src/flows/FlowExecutor.ts b/web/src/flows/FlowExecutor.ts index ddb622375..24a87fc98 100644 --- a/web/src/flows/FlowExecutor.ts +++ b/web/src/flows/FlowExecutor.ts @@ -162,11 +162,11 @@ export class FlowExecutor extends LitElement implements StageHost { ` };