adc231f10ebab8511b7ae90e85e1e2466b07ec27
JwtBearer middleware does not run for WebSocket upgrade requests, so HttpContext.User is anonymous inside Blazor Server components. Fall back to manual cookie parsing + token validation (same pattern used by EnvelopeReceiverAuthorizationService). Cache the resulting principal on HttpContext.User for subsequent calls within the same circuit. Also inject IOptionsMonitor<JwtBearerOptions> and IOptions<AuthTokenKeys> to support the validation path.
Description
No description provided
Languages
JavaScript
82.6%
C#
8.5%
HTML
4.1%
Visual Basic .NET
2.6%
CSS
1.7%
Other
0.4%