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

LG-15337: Socure Try again page for hybrid mobile flow #11734

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

solipet
Copy link
Contributor

@solipet solipet commented Jan 10, 2025

🎫 Ticket

LG-15337

🛠 Summary of changes

Socure Try again page for hybrid mobile flow

If the system times out waiting for the data from Socure, show the try again page with, if available, an option to switch to in person proofing.

Try again takes the user back to the Socure document capture page. Try in person takes the user to the beginning of the IPP flow, part of the hybrid_mobile document capture React app.

📜 Testing Plan

Setup:

  • Set the env branch to point to this PRs branch (e.g. timnit or solipet)
    • For example, using the solipet env:
git checkout dprice/lg-15337-try-again-hybrid
git pull
git checkout stages/solipet
git reset --hard dprice/lg-15337-try-again-hybrid
git push --force-with-lease
  • Set the following config vars to force a timeout on socure:
  doc_auth_vendor: socure
  doc_auth_vendor_default: socure
  doc_auth_socure_wait_polling_timeout_minutes: 0
  doc_auth_socure_job_sleep_seconds: 120
  doc_auth_socure_wait_polling_refresh_max_seconds: 10
  • Recycle the env to apply changes.
aws-vault exec sandbox-power -- bin/asg-recycle  solipet idp

Standard flow:

  • From a phone, sign in to the IDP and visit /verify to start the IdV flow
  • After using the Socure capture app, you should be directed to the Wait page
  • After 10 seconds, you should timeout and land on the Try again page
  • Click on Try in person - confirm you are on the beginning of the IPP flow
  • go back to return to the Try again page
  • Click on Try again - confirm you are on the Socure document capture page

Hybrid flow:

  • From a desktop browser, sign in to the IDP and visit /verify to start the IdV flow
  • From the hybrid handoff page, choose to continue on your phone
  • From your phone, open the link received via SMS and continue
  • After using the Socure capture app, you should be directed to the Wait page
  • After 10 seconds, you should timeout and land on the Try again page
  • Click on Try in person - confirm you are on the beginning of the IPP flow in the hybrid_mobile document_capture controller
  • go back to return to the Try again page
  • Click on Try again - confirm you are on the Socure document capture page

solipet and others added 4 commits January 10, 2025 12:22
If the system times out waiting for the data from Socure,
show the try again page with, if available, an option to switch to
in person proofing.

changelog: Upcoming Features, Identity Verification, Socure timeout provides hybrid users with options.

This first commit sets up the page. Try again works. IPP does not work
yet.
def extra_view_variables
{
flow_path: 'hybrid',
mock_client: doc_auth_vendor == 'mock',
document_capture_session_uuid: document_capture_session_uuid,
failure_to_proof_url: return_to_sp_failure_to_proof_url(step: 'document_capture'),
doc_auth_selfie_capture: resolved_authn_context_result.facial_match?,
skip_doc_auth_from_socure_hybrid: @skip_doc_auth_from_socure_hybrid,
Copy link
Contributor

@amirbey amirbey Jan 10, 2025

Choose a reason for hiding this comment

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

Suggested change
skip_doc_auth_from_socure_hybrid: @skip_doc_auth_from_socure_hybrid,
skip_doc_auth_from_socure: @skip_doc_auth_from_socure,

this is great! can we add this same attribute when opting into IPP from Socure standard flow which currently misrepesents the source of opting into IPP as hybrid handoff.

@@ -31,6 +32,9 @@ function InPersonPrepareStep({ toPreviousStep }) {
forceRedirect(previousStepURL);
} else if (skipDocAuthFromHowToVerify && howToVerifyURL) {
forceRedirect(howToVerifyURL);
} else if (skipDocAuthFromSocureHybrid) {
// directly from Socure Hybrid page
forceRedirect('https://google.com');
Copy link
Contributor

Choose a reason for hiding this comment

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

left over form testing? 😅

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