Skip to content

LG-15457 Read the sex attribute from the TrueID authentication result#11819

Merged
jmhooper merged 1 commit intomainfrom
jmhooper-read-sex-attribute-from-authentication-result
Jan 29, 2025
Merged

LG-15457 Read the sex attribute from the TrueID authentication result#11819
jmhooper merged 1 commit intomainfrom
jmhooper-read-sex-attribute-from-authentication-result

Conversation

@jmhooper
Copy link
Copy Markdown
Contributor

We have received clarification on the following from our vendor:

  1. The Fields_Sex attribute is no longer available in the ID_AUTH_FIELDS group
  2. The Sex attribute available in the AUTHENTICATION_RESULT group can be used to reliably determine the sex displayed on the document
  3. The Sex attribute in the AUTHENTICATION_RESULT group takes on the values of Male or Female.

This commit updates the DocPiiReader and the TrueID response fixtures to reflect this.

We have received clarification on the following from our vendor:

1. The `Fields_Sex` attribute is no longer available in the `ID_AUTH_FIELDS` group
2. The `Sex` attribute available in the `AUTHENTICATION_RESULT` group can be used to reliably determine the sex displayed on the document
3. The `Sex` attribute in the `AUTHENTICATION_RESULT` group takes on the values of `Male` or `Female`.

This commit updates the `DocPiiReader` and the TrueID response fixtures to reflect this.

[skip changelog]
state: 'MD',
dob: '1986-07-01',
sex: nil,
sex: 'male',
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This changed because this test is using the true_id_response_success_with_liveness.json fixture. This fixture was recorded recently so it did not include a Fields_Sex attribute. It does, however, contain a sex attribute in the AUTHENTICATION_RESULT group. The changes in this PR result in male being read from the response for the sex value.

@jmhooper jmhooper requested a review from a team January 29, 2025 20:18
@jmhooper jmhooper merged commit 2c6ae7c into main Jan 29, 2025
@jmhooper jmhooper deleted the jmhooper-read-sex-attribute-from-authentication-result branch January 29, 2025 20:45
n1zyy pushed a commit that referenced this pull request Jan 31, 2025
…#11819)

We have received clarification on the following from our vendor:

1. The `Fields_Sex` attribute is no longer available in the `ID_AUTH_FIELDS` group
2. The `Sex` attribute available in the `AUTHENTICATION_RESULT` group can be used to reliably determine the sex displayed on the document
3. The `Sex` attribute in the `AUTHENTICATION_RESULT` group takes on the values of `Male` or `Female`.

This commit updates the `DocPiiReader` and the TrueID response fixtures to reflect this.

[skip changelog]
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.

2 participants