Skip to content

Add tracking of billable IAL to SP Redirect events#6369

Merged
orenyk merged 1 commit intomainfrom
oyk-redirect-ial-logging
May 19, 2022
Merged

Add tracking of billable IAL to SP Redirect events#6369
orenyk merged 1 commit intomainfrom
oyk-redirect-ial-logging

Conversation

@orenyk
Copy link
Contributor

@orenyk orenyk commented May 18, 2022

Why: With the introduction of IALMAX to SAML using the Comparison
attribute, it is now impossible to filter "SP Redirect Initiated" log
events by the actual IAL that was sent back, since the IALContext
returns an IAL of zero by default. This change adds an additional
attribute to SP Redirect Initiated events for SAML and OIDC requests to
track the actual billable IAL (based on whether or not the user has
proofed). This also adds some more comprehensive controller specs for
IALMAX behavior for OIDC.

changelog: Improvements, Authentication, Track billable "IAL" in the event log for successful requests

@orenyk orenyk force-pushed the oyk-redirect-ial-logging branch from fc5e3a4 to c86e761 Compare May 19, 2022 01:00
**Why:** With the introduction of IALMAX to SAML using the Comparison
attribute, it is now impossible to filter "SP Redirect Initiated" log
events by the actual IAL that was sent back, since the IALContext
returns an IAL of zero by default. This change adds an additional
attribute to SP Redirect Initiated events for SAML and OIDC requests to
track the actual billable IAL (based on whether or not the user has
proofed). This also adds some more comprehensive controller specs for
IALMAX behavior for OIDC.

changelog: Improvements, Authentication, Track billable "IAL" in the event log for successful requests
@orenyk orenyk force-pushed the oyk-redirect-ial-logging branch from c86e761 to e64fa1b Compare May 19, 2022 01:03

IdentityLinker.new(user, service_provider).link_identity(ial: 2)
user.identities.last.update!(
verified_attributes: %w[given_name family_name birthdate verified_at],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note that these should not all be required but there's a bug with OIDC and IALMAX: https://cm-jira.usa.gov/browse/LG-6355

@orenyk orenyk requested review from jmhooper and zachmargolis May 19, 2022 01:14
@orenyk orenyk merged commit 5b203f1 into main May 19, 2022
@orenyk orenyk deleted the oyk-redirect-ial-logging branch May 19, 2022 13:20
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