-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[PM-29890] Refactor Two-factor WebAuthn Methods Out of UserService #6920
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?
[PM-29890] Refactor Two-factor WebAuthn Methods Out of UserService #6920
Conversation
…ntations structure to align with other feature areas.
…out-of-userservice
…ng from UserService.
…out-of-userservice
|
New Issues (1)Checkmarx found the following issues in this Pull Request
Fixed Issues (2)Great job! The following issues were fixed in this Pull Request
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #6920 +/- ##
==========================================
+ Coverage 56.06% 56.11% +0.05%
==========================================
Files 1969 1974 +5
Lines 87065 87128 +63
Branches 7755 7763 +8
==========================================
+ Hits 48811 48893 +82
+ Misses 36446 36427 -19
Partials 1808 1808 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…out-of-userservice
|
Claude finished @enmande's task in 1m 54s —— View job Code Review: Auth/pm 29890/refactor webauthn 2fa methods out of userserviceReviewed commit: 5c2d502 SummaryThis PR refactors WebAuthn 2FA credential management methods from
The refactoring also moves Re-review (5c2d502)The latest commit adds a documentation comment to No new issues identified in this incremental change. FindingsNo critical or important issues identified. Verdict: Approved - Clean refactoring with good test coverage. The code follows established patterns and maintains the same security guarantees.
|
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! Appreciate the high test coverage w/ the clean extraction and well documented interfaces! One question below.
.../Auth/UserFeatures/TwoFactorAuth/Implementations/DeleteTwoFactorWebAuthnCredentialCommand.cs
Show resolved
Hide resolved
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.
![]()


🎟️ Tracking
PM-29890
📔 Objective
Refactor two-factor WebAuthn-supporting methods out of the
UserServiceand into their own commands.Includes the credential registration start, credential registration complete (persist), and delete credential actions, with test suites for each.
Moves Two-factor WebAuthn into the Auth
UserFeaturesnamespace.Moved the related Query, as this was in a root/
Interfacesdirectory pattern; other similar areas use a root/Implementationspattern, with interfaces at the top-level namespace. No functional change, consistency only.📸 Screenshots
Two-factor WebAuthn credential management
Lifecycle of credential management.
pm-29890__weauthn-management.mov
Key Deletion
pm-29890__delete-key.mov
Two-factor WebAuthn credential limits
Altered to allow a single WebAuthn credential for illustrative purposes.
pm-29890__over-limit.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