Skip to content

LG-12150 Write acr_values and vtr to identites table using identity linker#10107

Merged
theabrad merged 6 commits intomainfrom
abrad-lg-12150-use-identity-linker-acr-vtr
Feb 22, 2024
Merged

LG-12150 Write acr_values and vtr to identites table using identity linker#10107
theabrad merged 6 commits intomainfrom
abrad-lg-12150-use-identity-linker-acr-vtr

Conversation

@theabrad
Copy link
Contributor

🎫 Ticket

LG-12150

🛠 Summary of changes

This is part two of being able to create an identity token with acr and vectors of trust values. This writes acr_values and vtr params into the identities table so we will be able to read from them later when creating the id token.

changelog: Internal, IdV, write acr_values and vtr to identites table
@theabrad theabrad requested review from a team and jmhooper February 16, 2024 16:59
Comment on lines +33 to +34
acr_values = 'http://idmanagement.gov/ns/assurance/aal/1'
vtr = 'C2.Pb'
Copy link
Contributor

Choose a reason for hiding this comment

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

my expectation is that we allow arrays here? are these array columns or single columns

Copy link
Contributor

Choose a reason for hiding this comment

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

These are string columns. The acr_values param that gets passed into the VoT Parser is a string so the VoT Parser can parse it.

We probably want vtr to be a JSON array here though.

rails_session_id: rails_session_id,
ial: ial_context.ial,
aal: aal,
acr_values: acr_values,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think that here we want to acr_values.join(' ') to ensure they are able to be properly parsed by the Vot::Parser. It expects these to be separated by spaces.

@theabrad theabrad requested a review from jmhooper February 21, 2024 21:30
@theabrad theabrad merged commit 8683398 into main Feb 22, 2024
@theabrad theabrad deleted the abrad-lg-12150-use-identity-linker-acr-vtr branch February 22, 2024 14:34
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