Description
To improve security we want to re-prompt for the user second factor authentication mechanism on their Mozilla Account when they perform sensitive actions.
FxA is adding support for this on their side in:
Once this lands the rough implementation idea would be:
- When authenticating on AMO side, look at the
auth_at in FxA's JWT claim or use their introspect API to figure it out
- Redirect sensitive endpoints to go through FxA
authorization endpoint with acr_values=AAL2 and max_age=X to request a recent 2FA - 0 being an acceptable value.
- (redirect back on successful auth - should happen normally)
In this ticket we should:
- Figure out what are sensitive actions
- Figure out what's an acceptable "max age" - time since the last 2FA from the user
- Implement that reprompt as highlighted above, behind a waffle switch or flag.
Acceptance Criteria
┆Issue is synchronized with this Jira Task
Description
To improve security we want to re-prompt for the user second factor authentication mechanism on their Mozilla Account when they perform sensitive actions.
FxA is adding support for this on their side in:
Once this lands the rough implementation idea would be:
auth_atin FxA's JWT claim or use theirintrospectAPI to figure it outauthorizationendpoint withacr_values=AAL2andmax_age=Xto request a recent 2FA - 0 being an acceptable value.In this ticket we should:
Acceptance Criteria
┆Issue is synchronized with this Jira Task