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

DCMAW-10829: Get biometric access token from ReadID #337

Merged
merged 46 commits into from
Jan 16, 2025
Merged

Conversation

jmooney-dd
Copy link
Contributor

@jmooney-dd jmooney-dd commented Jan 15, 2025

DCMAW-10829

What changed

  • Adds functionality to getBiometricToken() to send request to ReadID's /token endpoint with submitterKey to retrieve biometric access token
  • Adds POST functionality in sendHttpRequest()
  • Updates template.yaml to use v2 of ReadID mock
  • Adds logs when making request to ReadID for biometric access token:
    • MOBILE_ASYNC_BIOMETRIC_TOKEN_GET_BIOMETRIC_TOKEN_FROM_READID_ATTEMPT
      • level: "debug" - will only appear in dev
    • MOBILE_ASYNC_BIOMETRIC_TOKEN_GET_BIOMETRIC_TOKEN_FROM_READID_FAILURE
      • level: "error" - will appear in all environments
    • MOBILE_ASYNC_BIOMETRIC_TOKEN_GET_BIOMETRIC_TOKEN_FROM_READID_SUCCESS
      • level: "debug" - will only appear in dev

Why did it change

ReadID host a /token endpoint. This used for exchanging the submitter access key for a temporary access key that is scoped for use by the mobile apps. The submitter access keys have been retrieved

Next steps

This PR covers the logic required to get a biometric access token from ReadID however a follow-up PR will be raised to adapt sendHttpRequest() to allow for an exponential backoff retry policy, currently it is static

Evidence

Manual testing

First time integrating with our ReadID Mock in this account so made a real request to it and confirmed I received the expected response from the mock

Automation testing

Deployed stack and ran api tests - all passing

New log messages

MOBILE_ASYNC_BIOMETRIC_TOKEN_GET_BIOMETRIC_TOKEN_FROM_READID_ATTEMPT

Screenshot 2025-01-15 at 23 13 44

MOBILE_ASYNC_BIOMETRIC_TOKEN_GET_BIOMETRIC_TOKEN_FROM_READID_FAILURE

Screenshot 2025-01-16 at 00 04 55

MOBILE_ASYNC_BIOMETRIC_TOKEN_GET_BIOMETRIC_TOKEN_FROM_READID_SUCCESS

Screenshot 2025-01-15 at 23 14 16

Checklists

  • There is a ticket raised for this PR that is present in the branch name
  • No PII data logged. See guidance here
  • Demo to a BA, TA, and the team.
  • Update README with any new instructions or tasks

@jmooney-dd jmooney-dd marked this pull request as ready for review January 15, 2025 13:44
@jmooney-dd jmooney-dd requested review from a team as code owners January 15, 2025 13:44
@jmooney-dd jmooney-dd changed the title DCMAW-10829 DCMAW-10829: Get biometric access token from ReadID Jan 15, 2025
@jmooney-dd jmooney-dd merged commit d3ce486 into main Jan 16, 2025
2 checks passed
@jmooney-dd jmooney-dd deleted the DCMAW-10829 branch January 16, 2025 11:00
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