Skip to content

[PM-40673] Two Factor Remember Token Updates (Part 2) - #8428

Open
rr-bw wants to merge 19 commits into
mainfrom
auth/pm-40673/part-2
Open

rr-bw wants to merge 19 commits into
mainfrom
auth/pm-40673/part-2

Conversation

@rr-bw

@rr-bw rr-bw commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

🎟️ Tracking

PM-40673

PR Stack

  • auth/pm-40673/part-1 - Entity, Repository, and Command/Query updates
  • auth/pm-40673/part-2 - Add token issuance to login flow (and migrates from old-to-new tokens)
  • auth/pm-40673/part-3 - Updates call sites where we want to revoke 2FA remember tokens (admin 2FA reset, recovery code usage, removal of last 2FA method)

📔 Objective

Add token issuance and validation to the login flow (and migrates from old-to-new tokens)

📸 Screenshots

@rr-bw rr-bw changed the title [PM-40673 Part 2] Two Factor Remember Token Updates (Part 2) [PM-40673] Two Factor Remember Token Updates (Part 2) Sep 23, 2026
@rr-bw
rr-bw changed the base branch from main to auth/pm-40673/part-1 September 23, 2026 02:28
@codecov

codecov Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.23810% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.47%. Comparing base (7e6de55) to head (89faab1).

Files with missing lines Patch % Lines
...uestValidators/TwoFactorAuthenticationValidator.cs 92.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8428      +/-   ##
==========================================
+ Coverage   68.44%   68.47%   +0.03%     
==========================================
  Files        2744     2745       +1     
  Lines      117536   117558      +22     
  Branches    10772    10776       +4     
==========================================
+ Hits        80450    80503      +53     
+ Misses      34547    34514      -33     
- Partials     2539     2541       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@rr-bw
rr-bw added this pull request to stack #8466 September 28, 2026 15:59
@rr-bw
rr-bw force-pushed the auth/pm-40673/part-2 branch 2 times, most recently from 3f9ef86 to 89d833e Compare October 2, 2026 18:42
@rr-bw
rr-bw force-pushed the auth/pm-40673/part-2 branch 2 times, most recently from ad7a3b2 to 3705c63 Compare October 9, 2026 16:51
@rr-bw
rr-bw marked this pull request as ready for review October 9, 2026 17:00
@rr-bw
rr-bw requested a review from a team as a code owner October 9, 2026 17:00
@rr-bw
rr-bw requested a review from ike-kottlowski October 9, 2026 17:00
@github-actions

github-actions Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Bitwarden Claude Code Review

Overall Assessment: APPROVE

Re-reviewed part 2 of the PM-40673 stack at head 9264c8d90, including the latest commits that add TwoFactorRemember=1 coverage to the no-reissue test and update the remembered-device integration tests for device-bound email 2FA codes. BaseRequestValidator issues remember tokens through IIssueTwoFactorRememberTokenCommand only after DeviceValidator has set and saved the device. Current-format tokens are checked by the device-bound ValidateAsync(user, deviceIdentifier, token) query, and a replacement is issued only when a legacy token was accepted, so a Remember-provider login gets no new token whether TwoFactorRemember is 0 or 1. Earlier threads are all resolved, DI registrations for the new command and query are in place, and I found no new issues.

@rr-bw rr-bw added the ai-review Request a Claude code review label Oct 9, 2026
@rr-bw
rr-bw force-pushed the auth/pm-40673/part-2 branch from 05383ab to 343817f Compare October 9, 2026 20:21
@rr-bw
rr-bw marked this pull request as draft October 9, 2026 22:24
@rr-bw
rr-bw force-pushed the auth/pm-40673/part-2 branch 2 times, most recently from 4d97f91 to e613f21 Compare October 14, 2026 13:21
@rr-bw
rr-bw marked this pull request as ready for review October 14, 2026 14:24
@rr-bw
rr-bw force-pushed the auth/pm-40673/part-2 branch from e613f21 to d5976d5 Compare October 17, 2026 11:04
@rr-bw rr-bw removed the ai-review Request a Claude code review label Oct 17, 2026
@rr-bw
rr-bw force-pushed the auth/pm-40673/part-2 branch from d5976d5 to 2bc359b Compare October 17, 2026 12:29
@rr-bw rr-bw added the t:feature Change Type - Feature Development label Oct 17, 2026
@rr-bw
rr-bw force-pushed the auth/pm-40673/part-2 branch from 3125304 to 66649b4 Compare October 19, 2026 14:12
@rr-bw rr-bw added the ai-review Request a Claude code review label Oct 19, 2026
@rr-bw
rr-bw force-pushed the auth/pm-40673/part-2 branch from 66649b4 to 680db74 Compare October 21, 2026 19:48
Base automatically changed from auth/pm-40673/part-1 to main October 21, 2026 20:43
@mkincaid-bw

Copy link
Copy Markdown
Contributor

I removed the DBops review request because it looks like there's nothing here for us to review.

@rr-bw
rr-bw force-pushed the auth/pm-40673/part-2 branch 3 times, most recently from a00655e to e2a3f09 Compare October 28, 2026 14:01
@rr-bw
rr-bw force-pushed the auth/pm-40673/part-2 branch 2 times, most recently from 6de2037 to 9264c8d Compare October 30, 2026 19:44
@rr-bw rr-bw removed the ai-review Request a Claude code review label Nov 3, 2026
@rr-bw
rr-bw force-pushed the auth/pm-40673/part-2 branch 2 times, most recently from 6f58e7d to 10dcc26 Compare November 4, 2026 20:34
rr-bw added 19 commits November 6, 2026 01:06
@rr-bw
rr-bw force-pushed the auth/pm-40673/part-2 branch from 10dcc26 to 89faab1 Compare November 6, 2026 07:06

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t:feature Change Type - Feature Development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants