Skip to content

LG-14007: handle redirect from socure#11463

Merged
solipet merged 9 commits intomainfrom
dprice/lg-14007-handle-redirect-from-socure
Nov 8, 2024
Merged

LG-14007: handle redirect from socure#11463
solipet merged 9 commits intomainfrom
dprice/lg-14007-handle-redirect-from-socure

Conversation

@solipet
Copy link
Contributor

@solipet solipet commented Nov 6, 2024

🎫 Ticket

Link to the relevant ticket:
LG-14007

🛠 Summary of changes

Added a new GET route for the socure callback and pass that in on the request for the document capture app url. Upon receiving that GET, we collect the results from the DocumentCaptureSession, then if successful, redirect to the SSN step.

If not successful, it currently redirects back to the socure document capture page.

📜 Testing Plan

Currently deployed to a test environment:

  1. Create an account/sign in
  2. Go to /verify
  3. Go through IdV until you come back from Socure
  4. Verify that you land on the SSN page (assuming successful doc capture)

solipet and others added 4 commits November 5, 2024 15:25
Upon redirect from the Socure CaptureApp, we load the result stored in
the DocumentCaptureSession, and if successful, redirect to the SSN entry
step.

switch callback to a GET

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

Co-authored-by: John Maxwell <john.maxwell@gsa.gov>
Copy link
Contributor

@theabrad theabrad left a comment

Choose a reason for hiding this comment

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

LGTM tested it in your environment and worked as expected.

Funnel::DocAuth::RegisterStep.new(current_user.id, sp_session[:issuer]).
call('socure_document_capture', :update, true)

# cancel_establishing_in_person_enrollments
Copy link
Contributor

Choose a reason for hiding this comment

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

is this a TODO?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right... copied over from non-socure. This is from a bug fix - we should test it in my sandbox to see if it's needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Implemented in 078a91b

@solipet solipet force-pushed the dprice/lg-14007-handle-redirect-from-socure branch from eee8645 to f0a49ba Compare November 8, 2024 18:30
@amirbey amirbey self-requested a review November 8, 2024 20:33
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.

PR 1 of 2 ... LGTM 👍🏿

PR for async result to come 😄

@solipet solipet merged commit 79964cb into main Nov 8, 2024
@solipet solipet deleted the dprice/lg-14007-handle-redirect-from-socure branch November 8, 2024 21:54
@aduth aduth mentioned this pull request Nov 12, 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