Skip to content

Modify the SP requirement for IdV to require the SP to request verification#9663

Merged
jmhooper merged 1 commit intomainfrom
jmhooper-require-sp-ial2-request
Nov 27, 2023
Merged

Modify the SP requirement for IdV to require the SP to request verification#9663
jmhooper merged 1 commit intomainfrom
jmhooper-require-sp-ial2-request

Conversation

@jmhooper
Copy link
Contributor

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 change 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.

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 jmhooper requested a review from a team November 27, 2023 21:05
@jmhooper jmhooper changed the title Modify the SP requirement IdV to require the SP to request verification Modify the SP requirement for IdV to require the SP to request verification Nov 27, 2023
it 'begins the proofing process if the user has a profile' do
create(:profile, :verified, user: user)
get :index
expect(response).to redirect_to idv_welcome_url
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like this says if an SP is required but not present, and the user already has a verified profile, they restart proofing. Is that correct? I would expect it not to proof if they're already verified.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The profile is verified, but not active. The logic allows a user who has gone through proofing before to go through proofing again without an SP requesting IdV for them. This enables things like proofing again after resetting a password without a personal key.

Copy link
Contributor

@soniaconnolly soniaconnolly left a comment

Choose a reason for hiding this comment

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

LGTM

@jmhooper jmhooper merged commit bbe681f into main Nov 27, 2023
@jmhooper jmhooper deleted the jmhooper-require-sp-ial2-request branch November 27, 2023 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants