LG-14393: Require threatmetrix_session_id for verify info step#11254
LG-14393: Require threatmetrix_session_id for verify info step#11254
Conversation
There was a problem hiding this comment.
Thanks for including this test. Nice to see if you revisit the ssn page you will not get a new tmx session id.
Code looks good. I don't have time to manually test at the moment but will try to get back to this before end of day
|
Suggestion (non-blocking): Could ypu add an event that logs when a nil |
There was a problem hiding this comment.
I wonder if there is a method we could add to Idv::Session to cover this? That way we could do something like this:
idv_session.ssn_step_complete? && idv_session.ipp_document_capture_complete?There was a problem hiding this comment.
Yeah I like that suggestion. I'm currently tweaking this code based on @lmgeorge's feedback above, but I will probably do this too
jennyverdeyen
left a comment
There was a problem hiding this comment.
When I run the testing steps with the IPP flow, I get this broken redirect behavior upon hitting "Continue" on the SSN page. It looks like this only happens with the patch that makes it so there's no threatmetrix_session_id.
I haven't dug into why this is happening but I wanted to raise this since I saw it.
Screen.Recording.2024-09-18.at.4.07.31.PM.mov
|
@jennyverdeyen Ooh, thanks for the video. I will look into this |
16a6b6e to
aa76e7b
Compare
aa76e7b to
6c92b5c
Compare
6c92b5c to
504a0d4
Compare
504a0d4 to
39663ef
Compare
|
@jennyverdeyen Ok, new plan: I'm going to do the remote verify info controller in this pr and tackle the IPP one separately. Thank you for your help! |
39663ef to
8ff985c
Compare
…Info screen If the user does not have a session ID, redirect them back to the SSN step so that they get one. changelog: Internal, Identity verification, Prevent errors during verify info step due to missing session id.
- If the user is updating their SSN but their is no session id present, generate a new one
8ff985c to
4ddbad5
Compare
4ddbad5 to
927e791
Compare
jennyverdeyen
left a comment
There was a problem hiding this comment.
Re-tested with the updates to not include the IPP portion. No issues now, looks great!
* Require threatmetrix_session_id be present in idv_session for Verify Info screen If the user does not have a session ID, redirect them back to the SSN step so that they get one. changelog: Internal, Identity verification, Prevent errors during verify info step due to missing session id. * Update ThreatMetrix session ID generation logic - If the user is updating their SSN but their is no session id present, generate a new one * Add an analytics event when missing tmx session id
🎫 Ticket
Link to the relevant ticket:
LG-14393
🛠 Summary of changes
This PR updates the
preconditionsofVerifyInfoController(remote unsupervised only--IPP is being tracked in LG-14552) to require the presence of athreatmetrix_session_id. This is to work around a rare case where a user might end up on the verify info screen with no session id present. This is not an ideal fix, but rather an attempt to prevent a condition where a user will have no chance of passing identity verification.📜 Testing Plan
pbpaste | git apply) to ensure no threatmetrix_session_id is written to your sessionThe patch