Skip to content

LG-12265: Stop reading from sp_session[:piv_cac_requested]#10153

Merged
solipet merged 2 commits intomainfrom
dprice-lg-12265-stop-reading-piv-cac-requested
Feb 23, 2024
Merged

LG-12265: Stop reading from sp_session[:piv_cac_requested]#10153
solipet merged 2 commits intomainfrom
dprice-lg-12265-stop-reading-piv-cac-requested

Conversation

@solipet
Copy link
Contributor

@solipet solipet commented Feb 23, 2024

🎫 Ticket

Link to the relevant ticket:
LG-12265

🛠 Summary of changes

In a previous commit the resolved_authn_context_result was introduced to return a Vot::Parser::Result object that described the requirements for the current SP request considering SP default options. This is intended to be used to replace the keys in the sp_session that serve this purpose including the piv_cac_requested key.

This commit replaces places where the sp_session[:piv_cac_requested] value is read with new reads to the resolved_authn_context_result.

In a previous commit the `resolved_authn_context_result` was introduced to return a `Vot::Parser::Result` object that described the requirements for the current SP request considering SP default options. This is intended to be used to replace the keys in the `sp_session` that serve this purpose including the `piv_cac_requested` key.

This commit replaces places where the `sp_session[:piv_cac_requested]` value is read with new reads to the `resolved_authn_context_result`.

[skip changelog]
@solipet solipet requested a review from a team February 23, 2024 20:37
stub_sign_in(user)
controller.session[:sp] = { phishing_resistant_requeste: true, piv_cac_requested: true }
controller.session[:sp] = {
phishing_resistant_requeste: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

I see that this was like this before, but does this misspelling ("requeste") affect anything?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

LOL - removed it and it still passes. Done in 35df66c

@solipet solipet merged commit bb4b6ef into main Feb 23, 2024
@solipet solipet deleted the dprice-lg-12265-stop-reading-piv-cac-requested branch February 23, 2024 21:38
jmhooper pushed a commit that referenced this pull request Feb 27, 2024
A previous change (ref: #10153) stopped reading from sp_session[:piv_cac_requested] and started using the result from the AuthnContextResolver instead.

This change follows up by removing writes to the piv_cac_requested property in the SP session. This should not be merged until the change to stop reading is fully merged and deployed.

[skip changelog]
jmhooper pushed a commit that referenced this pull request Feb 28, 2024
A previous change (ref: #10153) stopped reading from sp_session[:piv_cac_requested] and started using the result from the AuthnContextResolver instead.

This change follows up by removing writes to the piv_cac_requested property in the SP session. This should not be merged until the change to stop reading is fully merged and deployed.

[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