-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Refreshing auth tokens for SignalR #5297
Copy link
Copy link
Open
Labels
Blazor ♥ SignalRThis issue is related to the experience of Signal R and Blazor working togetherThis issue is related to the experience of Signal R and Blazor working togetherNeeds: DesignThis issue requires design work before implementating.This issue requires design work before implementating.affected-mediumThis issue impacts approximately half of our customersThis issue impacts approximately half of our customersarea-signalrIncludes: SignalR clients and serversIncludes: SignalR clients and serversenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing oneon-roadmapListed on the current release roadmapListed on the current release roadmapseverity-majorThis label is used by an internal toolThis label is used by an internal tool
Milestone
Metadata
Metadata
Assignees
Labels
Blazor ♥ SignalRThis issue is related to the experience of Signal R and Blazor working togetherThis issue is related to the experience of Signal R and Blazor working togetherNeeds: DesignThis issue requires design work before implementating.This issue requires design work before implementating.affected-mediumThis issue impacts approximately half of our customersThis issue impacts approximately half of our customersarea-signalrIncludes: SignalR clients and serversIncludes: SignalR clients and serversenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing oneon-roadmapListed on the current release roadmapListed on the current release roadmapseverity-majorThis label is used by an internal toolThis label is used by an internal tool
Type
Fields
Give feedbackNo fields configured for Feature.
Below is one option we've considered, but I'm re-framing this issue to build some story for refreshing auth tokens.
To improve the ability to "refresh" expired tokens, we should consider caching the access token provided by the factory. Then, when an HTTP request gets a
401, we call the factory again before re-issuing the request. That way the user can configure a process to "refresh" the token without forcing the connection to be reestablishedPOST(send) requests. We would call the token factory again and re-issue the send. The unsent data would stay buffered in the pipePOSTrequests like SSE, and theGET(poll) requests. The client would assume that a401error indicates that the data is still in the pipe for them to read. The server would be expected to keep data in the pipe in the case of a401