-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[PM-24211]: 2FA Send Email Login validation should use AuthRequest.IsValidForAuthentication #6695
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
base: main
Are you sure you want to change the base?
Conversation
…o use auth request's IsValidForAuthentication.
…longer used; AuthRequest.IsValidForAuthentication should be used for any applicable use cases.
…on successful send.
|
Great job! No new security vulnerabilities introduced in this pull request |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6695 +/- ##
==========================================
+ Coverage 53.41% 57.46% +4.05%
==========================================
Files 1917 1924 +7
Lines 85467 85705 +238
Branches 7667 7686 +19
==========================================
+ Hits 45651 49254 +3603
+ Misses 38048 34606 -3442
- Partials 1768 1845 +77 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Claude finished @enmande's task —— View job Code Review CompleteTasks
Review FindingsI've completed a thorough review of this PR that refactors 2FA email login validation from using a dedicated ✅ Security Enhancement (Positive)The refactoring significantly improves security. The old
The new
This prevents several attack vectors including replay attacks and authorization bypasses. 📝 Critical Bug Fix IdentifiedThe addition of the
|
JaredSnider-Bitwarden
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work! Thank you for your patience in the requested tweaks!

🎟️ Tracking
PM-24211
📔 Objective
Update the 2FA Send Email Login action to use
AuthRequest.IsValidForAuthenticationevaluation. This helper is more consistently preferred for validation scenarios, to ensure parity across validation schemes and facilitate maintenance.The replaced command, having a single call site, has been removed.
📸 Screenshots
See PM-24211
Log in with Device, Email 2FA Required
PM-24211__email-login-with-device.mov
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes