Skip to content

Harden SignalR authentication refresh - #68459

Draft
BrennanConroy wants to merge 2 commits into
mainfrom
brennanconroy-auth-refresh-followup-fixes
Draft

Harden SignalR authentication refresh#68459
BrennanConroy wants to merge 2 commits into
mainfrom
brennanconroy-auth-refresh-followup-fixes

Conversation

@BrennanConroy

Copy link
Copy Markdown
Member

Summary

  • prevent stale authentication refresh publications from rolling back hub user state
  • synchronize the .NET client refresh timer across start, stop, close, manual refresh, and timer refresh, including safe short-lived-token scheduling
  • separate replaceable refresh-transition policy from Long Polling send/delete connection ownership checks
  • allow Blazor circuits to accept changed and anonymous identities and update circuit authentication state without reconnecting
  • add focused regressions for refresh races, timer cleanup, disposal, overflow, ownership, and Blazor identity transitions

Tests

  • SignalR .NET client authentication-refresh unit tests
  • SignalR server authentication-refresh unit tests
  • HTTP Connections authentication-refresh and ownership tests
  • Components Server ComponentHubTest authentication-refresh tests
  • Components E2E build
  • ServerAuthTest.UpdatesAuthenticationStateWhenAuthenticationRefreshed
  • git diff --check

BrennanConroy and others added 2 commits August 12, 2026 10:48
Prevent stale authentication publications and refresh timers, separate transport ownership from refresh policy, and allow Blazor circuits to accept identity transitions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: a24ee9dd-34dc-456d-a884-16110ff745bd
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: a24ee9dd-34dc-456d-a884-16110ff745bd
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.

1 participant