Skip to content

Authorization Server's OAuth2 Endpoints should validate MFA #18165

@joaquinjsb

Description

@joaquinjsb

Expected Behavior

When Enabling MFA, OAuth2 auhorization flows should (optionally) first get MFA validated, then continue with the flow.

Current Behavior

MFA flows are completely ignored and the Oauth2 flow finished properly.

Context
I haven't found any alternatives yet, only having a custom AuthenticationTrustResolver, and manage it form there.

mcve.zip

Spring security 7.0.0-SNAPSHOT

how to reproduce:

  1. start the mcve
  2. configure https://oauthdebugger.com/
    authorize uri: http://127.0.0.1:8080/oauth2/authorize
    redirect uri: https://oauthdebugger.com/debug
    client: oidc-client
    scope: openid profile
    response type: code
    pkce: yes
  3. click send request

the oauth2 flow will complete successfully, instead we're supposed to use the MFA?

Metadata

Metadata

Assignees

Labels

in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)status: feedback-providedFeedback has been provided

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions