You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Per-application MFA / step-up at OAuth authorization time #160
MFA is enforced at session login only. An OAuth application cannot demand a fresh MFA challenge before issuing an authorization code. There is no per-app MFA policy.
Rationale (roadmap: hermes-j33, P1)
Auth0 and Okta both support per-app MFA policies and step-up. Identified in j33.4.
Suggested approach
Add a require_mfa flag (or mfa_policy) to the OAuth Application schema.
In OAuthController.authorize/2, if the app requires MFA and the user's last MFA challenge is older than a threshold (or absent), redirect to /mfa/verify with a return-to-authorize target.
Activity