Skip to content

LG-13312 Return an array from #requested_vtr_authn_context#100

Merged
jmhooper merged 2 commits intomainfrom
jmhooper-return-vtr-as-an-array
May 22, 2024
Merged

LG-13312 Return an array from #requested_vtr_authn_context#100
jmhooper merged 2 commits intomainfrom
jmhooper-return-vtr-as-an-array

Conversation

@jmhooper
Copy link

The Request#requested_vtr_authn_context method returns the vectors of trust that appeared in AuthnContextClassRef nodes in the SAML request.

Service providers can send multiple vectors by adding additional AuthnContextClassRef nodes with vectors of trust in them. We initially managed this by selecting the first vector. However, we are interested in adding logic that selects an appropriate vector based on the user context. As a result we need to know all of the vectors that were passed in the SAML request.

This commit modifies the Request#requested_vtr_authn_context so that it returns all of the vectors in the SAML request in an array.

The `#requested_vtr_authn_context` method returns the vectors of trust that appeared in AuthnContextClassRef nodes in the SAML request.

Service providers can send multiple vectors by adding additional AuthnContextClassRef nodes with vectors of trust in them. We initially managed this by selecting the first vector. However, we are interested in adding logic that selects an appropriate vector based on the user context. As a result we need to know all of the vectors that were passed in the SAML request.

This commit modifies the `Request#requested_vtr_authn_context` so that it returns all of the vectors in the SAML request in an array.
@jmhooper jmhooper changed the title Return and array from #requested_vtr_authn_context Return an array from #requested_vtr_authn_context May 14, 2024
@jmhooper jmhooper changed the title Return an array from #requested_vtr_authn_context LG-13312 Return an array from #requested_vtr_authn_context May 14, 2024
@jmhooper jmhooper merged commit 33275d6 into main May 22, 2024
@jmhooper jmhooper deleted the jmhooper-return-vtr-as-an-array branch May 22, 2024 17:46
jmhooper added a commit to 18F/identity-idp that referenced this pull request May 22, 2024
We added support for sending multiple vectors of trust using the OIDC interface in #10517. This commit adds the same feature to the SAML interace.

To send multiple vectors using SAML partners can include multiple AuthnContextNodes with a vector in each. This was enabled in 18F/saml_idp#100.

[skip changelog]
jmhooper added a commit to 18F/identity-idp that referenced this pull request May 22, 2024
We added support for sending multiple vectors of trust using the OIDC interface in #10517. This commit adds the same feature to the SAML interace.

To send multiple vectors using SAML partners can include multiple AuthnContextNodes with a vector in each. This was enabled in 18F/saml_idp#100.

[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.

4 participants