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-14010 - More detailed error page for Socure errors #11560

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

Conversation

jmax-gsa
Copy link
Contributor

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

Added plumbing and UX display for categorized Socure errors.

changelog Upcoming Features, Socure, Added nice error displays

🎫 Ticket

Link to the relevant ticket:
LG-14010

🛠 Summary of changes

Passed the Socure errors through from the original DocV response back through the document capture result, then added a presenter and updated error page to display it all nicely.

📜 Testing Plan

This test procedure requires a sandbox set up to use Socure. See jmax
or Doug to coordinate use of one.

  • SSM into the sandbox and modify the file
    /srv/idp/current/app/services/doc_auth/socure/responses/docv_result_response.rb. Insert
    the following lines after line 36:
    # KLUDGE
    parsed_body['documentVerification']['decision']['value'] = 'reject'
    parsed_body['documentVerification']['reasonCodes'] = ['I848']
  • Exit the SSM sesion and reboot Puma

  • Connect to the IDP, create an account, and begin IdV. Verify that
    you end up on the Category 1 error page.

  • Cancel out of IdV and return to your account page.

  • SSM into the sandbox and modify the above file once again. Change the error code from 'I848' to 'I849'.

  • Exit the SSM session and reboot Puma

  • Connect to the IDP, create an account, and begin IdV. Verify that
    you end up on the Category 2 error page.

  • Cancel out of IdV and return to your account page.

  • SSM into the sandbox and modify the above file once again. Change the error code from 'I849' to 'R827'.

  • Exit the SSM session and reboot Puma

  • Connect to the IDP, create an account, and begin IdV. Verify that
    you end up on the Category 3 error page.

  • Cancel out of IdV and return to your account page.

  • SSM into the sandbox and modify the above file once again. Change the error code from 'R827' to 'I808'.

  • Exit the SSM session and reboot Puma

  • Connect to the IDP, create an account, and begin IdV. Verify that
    you end up on the Category 4 error page.

  • Cancel out of IdV and return to your account page.

  • SSM into the sandbox and modify the above file once again. Change the error code from 'I808' to 'R845'.

  • Exit the SSM session and reboot Puma

  • Connect to the IDP, create an account, and begin IdV. Verify that
    you end up on the Category 5 error page.

  • Cancel out of IdV and return to your account page.

  • SSM into the sandbox and modify the above file once again. Change the error code from 'R845' to 'I856'.

  • Exit the SSM session and reboot Puma

  • Connect to the IDP, create an account, and begin IdV. Verify that
    you end up on the Category 6 error page.

  • Cancel out of IdV and return to your account page.

  • SSM into the sandbox and modify the above file once again. This
    time, remove the error code line completely and replace it with
    raise "Some error"

  • Exit the SSM session and reboot Puma

  • Connect to the IDP, create an account, and begin IdV. Verify that
    you end up on the Category 7 error page.

  • Cancel out of IdV, return to your account page, and log out.

👀 Screenshots

If relevant, include a screenshot or screen capture of the changes.

Category 1 error page

image

Category 2 error page

image

Category 3 error page

image

Category 4 error page

image

Category 5 error page

image

Category 6 errpr page

image

Category 7 error page

image

Added plumbing and UX display for categorized Socure errors.

changelog Upcoming Features, Socure, Added nice error displays
changelog: Upcoming Features, Socure, Added nice error display for Socure failures
@jmax-gsa jmax-gsa marked this pull request as ready for review November 26, 2024 16:14
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.

1 participant