Skip to content

LG-10396 Update PII Validation for State/Territory#9797

Merged
charleyf merged 9 commits intomainfrom
charley/lg-10396-update-pii-validation-for-state/territory
Dec 21, 2023
Merged

LG-10396 Update PII Validation for State/Territory#9797
charleyf merged 9 commits intomainfrom
charley/lg-10396-update-pii-validation-for-state/territory

Conversation

@charleyf
Copy link
Contributor

🎫 Ticket

https://cm-jira.usa.gov/browse/LG-10396

🛠 Summary of changes

This work updates our validations to required that the response we get from TrueID includes the OCRed value for "State" from the license image we sent. This error is currently surfacing later in the process, so this PR actually just moves it up to a place where the user can actually address it (by reuploading ID images).

…ritory is a valid state/territory in response from TrueID to allow users to address by reuploading their id
@charleyf charleyf marked this pull request as ready for review December 19, 2023 16:37
@charleyf charleyf requested review from a team and amirbey and removed request for a team December 19, 2023 16:38
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

Copy link
Contributor

@night-jellyfish night-jellyfish left a comment

Choose a reason for hiding this comment

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

I tried it out locally and it worked!

I first tried with a successful file (spec/fixtures/ial2_test_credential.yml) and saw doc auth succeed. Then I edited that file to have a really long state abbreviation (basically just adding a bunch of y's). That failed as expected, with the general error of Try taking new pictures.

It does seem like maybe an error of doc_auth.errors.alerts.address_check might be more communicative, but maybe that's a future improvement or a question for design.

@charleyf charleyf merged commit 0a79dcc into main Dec 21, 2023
@charleyf charleyf deleted the charley/lg-10396-update-pii-validation-for-state/territory branch December 21, 2023 23:38
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.

4 participants