Skip to content

LG-12308: validate images are sourced by sdk when liveness check is required#10164

Merged
amirbey merged 3 commits intomainfrom
amirbey/LG-12308-selfie-image-source-validation
Feb 28, 2024
Merged

LG-12308: validate images are sourced by sdk when liveness check is required#10164
amirbey merged 3 commits intomainfrom
amirbey/LG-12308-selfie-image-source-validation

Conversation

@amirbey
Copy link
Contributor

@amirbey amirbey commented Feb 26, 2024

🎫 Ticket

LG-12308

🛠 Summary of changes

Add image upload validation to verify tha image files are all sourced by sdk when doc auth with selfie is required.

📜 Testing Plan

  • complete doc auth with selfie on desktop
  • complete doc auth with selfie on mobile (w/ doc_auth_selfie_desktop_test_mode disabled and prior to merge of PR for LG-12307)
    • attempt to upload images and fail
    • successfully submit images via sdk

@amirbey amirbey self-assigned this Feb 26, 2024
@amirbey amirbey force-pushed the amirbey/LG-12308-selfie-image-source-validation branch from 037e3db to 379611f Compare February 27, 2024 21:32
@amirbey amirbey marked this pull request as ready for review February 27, 2024 22:32
@amirbey amirbey marked this pull request as draft February 27, 2024 22:38
@amirbey amirbey marked this pull request as ready for review February 27, 2024 23:38
@amirbey amirbey requested review from a team, dawei-nava and night-jellyfish and removed request for a team February 28, 2024 16:01
@amirbey amirbey changed the title LG-12308: validate images are sdk source when liveness check is required LG-12308: validate images are sourced by sdk when liveness check is required Feb 28, 2024
Copy link
Contributor

@dawei-nava dawei-nava left a comment

Choose a reason for hiding this comment

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

LGTM.

But I do have a question. When I do testing on desktop, the upload part is hidden on hybrid handoff page.

@amirbey , sorry, i had some stale files.

Copy link
Contributor

Choose a reason for hiding this comment

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

I tried this locally and it worked! 🎉 I did have to make sure these two flags were set:

  doc_auth_selfie_capture_enabled: true
  doc_auth_selfie_desktop_test_mode: false

I also saw some strange behavior that was perhaps a fluke or the gift card I was using. When I first tried using the SDK after failing the upload I saw:

  • only tap to capture as an option
  • a few "image is blurry" failures
  • second time I was able to use autocapture instead of tap to capture and I'm not clear why
  • the selfie autocapture was very slow and strange for me

Again these are probably something I did somehow as I don't see a cause for these issues in this code. But I wanted to note here in case it is a pattern.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes... you're right on the FF settings to trigger a failure 👍🏿

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.

Tested locally and saw success. Some odd things happened that I noted as a comment, but as they were likely my local issues rather than this work, I am approving.

…e uploaded by sdk when selfie is required

changelog: Upcoming Features, Document Authentication, Ensure all doc auth images are sourced by sdk when liveness check is required
@amirbey amirbey force-pushed the amirbey/LG-12308-selfie-image-source-validation branch from 4e1cf54 to 1e6982f Compare February 28, 2024 18:52
@amirbey amirbey merged commit 6494e28 into main Feb 28, 2024
@amirbey amirbey deleted the amirbey/LG-12308-selfie-image-source-validation branch February 28, 2024 20:28
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