Skip to content
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

Log new_device with email and password authentication event #10957

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

aduth
Copy link
Member

@aduth aduth commented Jul 17, 2024

🎫 Ticket

Supports LG-13904

🛠 Summary of changes

Updates "Email and Password Authentication" event to include a new new_device property.

This will help support:

  • Monitor expected behaviors for deployment of new sign-in email aggregation feature
  • With in-progress reCAPTCHA-at-sign-in behaviors, which are expected to only apply for new device sign-ins

📜 Testing Plan

  1. Have a separate terminal process running make watch_events
  2. Go to http://localhost:3000
  3. Sign in
  4. Observe event for "Email and Password Authentication" has expected result for new_device

To force new_device: true, try in a private browsing window. To force new_device: false, first sign-in, sign-out, and start over.

changelog: Internal, Analytics, Log new_device with email and password authentication event
@aduth aduth requested a review from a team July 17, 2024 19:57
@aduth aduth merged commit a64bcaa into main Jul 18, 2024
2 checks passed
@aduth aduth deleted the aduth-email-password-auth-new-device branch July 18, 2024 12:13
aduth added a commit that referenced this pull request Jul 18, 2024
aduth added a commit that referenced this pull request Jul 18, 2024
aduth added a commit that referenced this pull request Jul 18, 2024
aduth added a commit that referenced this pull request Jul 18, 2024
changelog: Internal, Analytics, Log new_device with email and password authentication event
aduth added a commit that referenced this pull request Jul 23, 2024
…10965)

* Log new_device with email and password authentication event (#10957)

changelog: Internal, Analytics, Log new_device with email and password authentication event

* Handle unauthenticated user from new_device helper

* Stub warden authenticated? value in stubbed sign-in

* Use Devise sign_out for handling lockout

Avoids mixed states, more consistent abstraction use

* Revert to original success-based logging

Should behave more predictably after 06ad70b

* Revert unnecessary changes to stub_sign_in
mitchellhenke pushed a commit that referenced this pull request Jul 30, 2024
changelog: Internal, Analytics, Log new_device with email and password authentication event
mitchellhenke pushed a commit that referenced this pull request Jul 30, 2024
…10965)

* Log new_device with email and password authentication event (#10957)

changelog: Internal, Analytics, Log new_device with email and password authentication event

* Handle unauthenticated user from new_device helper

* Stub warden authenticated? value in stubbed sign-in

* Use Devise sign_out for handling lockout

Avoids mixed states, more consistent abstraction use

* Revert to original success-based logging

Should behave more predictably after 06ad70b

* Revert unnecessary changes to stub_sign_in
mitchellhenke pushed a commit that referenced this pull request Jul 31, 2024
changelog: Internal, Analytics, Log new_device with email and password authentication event
mitchellhenke pushed a commit that referenced this pull request Jul 31, 2024
…10965)

* Log new_device with email and password authentication event (#10957)

changelog: Internal, Analytics, Log new_device with email and password authentication event

* Handle unauthenticated user from new_device helper

* Stub warden authenticated? value in stubbed sign-in

* Use Devise sign_out for handling lockout

Avoids mixed states, more consistent abstraction use

* Revert to original success-based logging

Should behave more predictably after 06ad70b

* Revert unnecessary changes to stub_sign_in
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