Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jmax/lg 14008 handle redirect from socure in hybrid handoff #11473

Merged

Conversation

jmax-gsa
Copy link
Contributor

@jmax-gsa jmax-gsa commented Nov 7, 2024

🎫 Ticket

LG-14008

After successful doc auth using Socure in the hybrid flow, the user continues to the 'Enter SSN' step.

🛠 Summary of changes

  • Added a new GET route for Socure webhook
  • Pass the URL for the above route to Socure when invoking their capture app
  • When we receive the webhook invocation from Socure, pick up the results from the DocumentCaptureSession and redirect the user to the SSN step.

📜 Testing Plan

Requires a sandbox or other externally visible environment. Also requires the Socure webhook to be pointed at the testing environment. Currently deployed to jmax's sandbox. See jmax or Doug for help with this if needed.

  • Create an account or sign in using your computer.
  • Go to /verify
  • Continue through IdV, using the hybrid flow.
  • Verify that after you successfully capture and verify your ID, you are redirected on your computer to the SSN step.

@jmax-gsa jmax-gsa force-pushed the jmax/LG-14008-handle-redirect-from-socure-in-hybrid-handoff branch 2 times, most recently from 180eb6e to 633c4b4 Compare November 7, 2024 20:09
@jmax-gsa jmax-gsa marked this pull request as ready for review November 7, 2024 20:22
@jmax-gsa jmax-gsa requested review from AShukla-GSA, a team and theabrad and removed request for a team November 7, 2024 20:22
Comment on lines 53 to 62
if result.success?
redirect_to idv_ssn_url
else
redirect_to idv_socure_document_capture_url
end
Copy link
Contributor

@amirbey amirbey Nov 8, 2024

Choose a reason for hiding this comment

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

Suggested change
if result.success?
redirect_to idv_ssn_url
else
redirect_to idv_socure_document_capture_url
end
redirect_to idv_hybrid_mobile_socure_document_capture_url

should we instead be redirecting to the hybrid mobile url here? ...

should be using this confirm_document_capture_needed filter? 🤔 ...
if so, can we move this filter in to a concern for use in both hybrid mobile document capture controllers?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We do want to redirect to SSN on success, but you're right that we want to go back to hybrid mobile on failure. Changed.

@jmax-gsa jmax-gsa force-pushed the jmax/LG-14008-handle-redirect-from-socure-in-hybrid-handoff branch from 41d9d23 to ae5a3fe Compare November 14, 2024 13:56
solipet and others added 4 commits November 14, 2024 10:53
When the user successfully verifies their identity using Socure in the
hybrid flow, we redirect their computer session to the SSN entry step.

changelog: Upcoming Features, Identity Verification, Handle Socure handoff.

Co-authored-by: Douglas Price <[email protected]>
@jmax-gsa jmax-gsa force-pushed the jmax/LG-14008-handle-redirect-from-socure-in-hybrid-handoff branch from ae5a3fe to 3a83287 Compare November 14, 2024 16:05
Copy link
Contributor

@amirbey amirbey left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏿

@solipet solipet merged commit a8743bb into main Nov 14, 2024
2 checks passed
@solipet solipet deleted the jmax/LG-14008-handle-redirect-from-socure-in-hybrid-handoff branch November 14, 2024 18:14
@aduth aduth mentioned this pull request Nov 19, 2024
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.

3 participants