-
Notifications
You must be signed in to change notification settings - Fork 166
LG-10837: Add New Piv Cac Logging for login visited #9294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
c048028
9e1b174
32e4add
c6deef1
debde1b
7146bbf
867ae9e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2660,13 +2660,14 @@ def multi_factor_auth_added_phone(enabled_mfa_methods_count:, **extra) | |
| ) | ||
| end | ||
|
|
||
| # @identity.idp.previous_event_name Multi-Factor Authentication: Added PIV_CAC | ||
| # Tracks when the user has added the MFA method piv_cac to their account | ||
| # @param [Integer] enabled_mfa_methods_count number of registered mfa methods for the user | ||
| # @param [Boolean] in_account_creation_flow whether user is going through creation flow | ||
| def multi_factor_auth_added_piv_cac(enabled_mfa_methods_count:, in_account_creation_flow:, | ||
| **extra) | ||
| track_event( | ||
| 'Multi-Factor Authentication: Added PIV_CAC', | ||
| 'Multi-Factor Authentication: Added PIV CAC', | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I hate to reopen pandora's box, but depending on the outcome of #9318, we may be establishing a new naming convention. Would you want to consider jumping to that new convention or holding off on a rename? I guess my concern is whether it's worth "fixing" the name if the naming convention is going to change anyways.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think ill hold off on renaming tbh, since its gonna change anyways.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. #9318 is merged now if you want to go ahead and rebase / adjust. |
||
| { | ||
| method_name: :piv_cac, | ||
| enabled_mfa_methods_count:, | ||
|
|
@@ -3403,18 +3404,23 @@ def piv_cac_disabled | |
| track_event('PIV CAC disabled') | ||
| end | ||
|
|
||
| # @identity.idp.previous_event_name PIV/CAC login | ||
| # @param [Boolean] success | ||
| # @param [Hash] errors | ||
| # tracks piv cac login event | ||
| def piv_cac_login(success:, errors:, **extra) | ||
| track_event( | ||
| 'PIV/CAC Login', | ||
| 'PIV CAC login', | ||
|
mdiarra3 marked this conversation as resolved.
Outdated
|
||
| success: success, | ||
| errors: errors, | ||
| **extra, | ||
| ) | ||
| end | ||
|
|
||
| def piv_cac_login_visited | ||
| track_event('PIV CAC login visited') | ||
| end | ||
|
|
||
| # @identity.idp.previous_event_name User Registration: piv cac setup visited | ||
| # Tracks when user's piv cac setup | ||
| # @param [Boolean] in_account_creation_flow | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.