Skip to content

LG-4099: Don't allow any /verify/* path in prod without SP context #4634

Merged
solipet merged 10 commits intomasterfrom
dprice-lg-4099-block-nonSP-verify-part2
Feb 5, 2021
Merged

LG-4099: Don't allow any /verify/* path in prod without SP context #4634
solipet merged 10 commits intomasterfrom
dprice-lg-4099-block-nonSP-verify-part2

Conversation

@solipet
Copy link
Contributor

@solipet solipet commented Jan 30, 2021

Final PR on this subject!

If a user signs in directly to secure.login.gov, then attempts to go to the /verify path, they will be redirected back to the account page. This only applies to the production environments. Being redirected to the verify path via request from an SP is not affected.

@aduth noted in #4538 that this should probably apply to all /verify/* paths, not just /verify. This made us realize that users who have reset their account and need to re-proof will not have a SP context, but should also be allowed to continue.

The spec on the IdvController tests that the before action does what it is supposed to do, and the other specs simply assure that the before action is present on the controller.

@solipet solipet marked this pull request as ready for review February 2, 2021 17:33
Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me! 👍

@solipet solipet merged commit ff2b135 into master Feb 5, 2021
@solipet solipet deleted the dprice-lg-4099-block-nonSP-verify-part2 branch February 5, 2021 19:04
jmhooper added a commit that referenced this pull request Nov 27, 2023
In #4634 we restricted the identity verification process to require a service provider for a user to undergo proofing. This commit added other features like a `idv_sp_required` for configuring this behavior to be enabled or disabled. This commit required an SP to be present but did not require the SP to actually request verification.

This commit changes the code so that `IalContext` is invoked to check if verification was in fact requested. This way users can't go to an SP that does not require verification and start the verification process by navigating to `/verify`.

changelog: User-Facing Improvements, SP IdV Requirement, Users can only undergo proofing if the SP IAL context is for identity verification or greater.
jmhooper added a commit that referenced this pull request Nov 27, 2023
…on (#9663)

In #4634 we restricted the identity verification process to require a service provider for a user to undergo proofing. This commit added other features like a `idv_sp_required` for configuring this behavior to be enabled or disabled. This commit required an SP to be present but did not require the SP to actually request verification.

This commit changes the code so that `IalContext` is invoked to check if verification was in fact requested. This way users can't go to an SP that does not require verification and start the verification process by navigating to `/verify`.

changelog: User-Facing Improvements, SP IdV Requirement, Users can only undergo proofing if the SP IAL context is for identity verification or greater.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants