diff options
Diffstat (limited to 'internal/handlers/handler_sign_webauthn.go')
| -rw-r--r-- | internal/handlers/handler_sign_webauthn.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/handlers/handler_sign_webauthn.go b/internal/handlers/handler_sign_webauthn.go index bd1709959..d4007e4e2 100644 --- a/internal/handlers/handler_sign_webauthn.go +++ b/internal/handlers/handler_sign_webauthn.go @@ -84,10 +84,10 @@ func WebauthnAssertionPOST(ctx *middlewares.AutheliaCtx) { err error w *webauthn.WebAuthn - requestBody signWebauthnRequestBody + bodyJSON signWebauthnRequestBody ) - if err = ctx.ParseBody(&requestBody); err != nil { + if err = ctx.ParseBody(&bodyJSON); err != nil { ctx.Logger.Errorf(logFmtErrParseRequestBody, regulation.AuthTypeWebauthn, err) respondUnauthorized(ctx, messageMFAValidationFailed) @@ -197,9 +197,9 @@ func WebauthnAssertionPOST(ctx *middlewares.AutheliaCtx) { return } - if userSession.ConsentChallengeID != nil { - handleOIDCWorkflowResponse(ctx) + if bodyJSON.Workflow == workflowOpenIDConnect { + handleOIDCWorkflowResponse(ctx, bodyJSON.TargetURL) } else { - Handle2FAResponse(ctx, requestBody.TargetURL) + Handle2FAResponse(ctx, bodyJSON.TargetURL) } } |
