Skip to content
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

SignalR Token Renewal #20090

Closed
Tracked by #23357
philip-reed opened this issue Oct 2, 2020 · 2 comments
Closed
Tracked by #23357

SignalR Token Renewal #20090

philip-reed opened this issue Oct 2, 2020 · 2 comments
Labels
needs-more-info SignalR Source - Docs.ms Docs Customer feedback via GitHub Issue

Comments

@philip-reed
Copy link
Contributor

philip-reed commented Oct 2, 2020

Note
The access token function you provide is called before every HTTP request made by SignalR. If you need to renew the token in order to keep the connection active (because it may expire during the connection), do so from within this function and return the updated token.

Can this be elaborated on a little? How does the client know if the token needs to be renewed?
Do I need to ping a URL first to check if the token has expired and then if I get a 401, then send the refresh token to get a new auth token?

Is there any existing guidance / best practice for this?

These seem related:
dotnet/aspnetcore#5283
dotnet/aspnetcore#5297
dotnet/aspnetcore#14578

Thanks.

Edit:
Seems I overlooked the JWT can be parsed on the client to check the expiry.
Presume that's how to do this?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@philip-reed
Copy link
Contributor Author

More info required from me?
Happy to help if you can let me know where detail is lacking.

Cheers,
Phil

@Rick-Anderson
Copy link
Contributor

Thank you for contacting us. Due to a lack of activity on this discussion issue we're closing it in an effort to keep our backlog clean. If you believe there is a concern related to the ASP.NET Core which hasn't been addressed, please file a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-more-info SignalR Source - Docs.ms Docs Customer feedback via GitHub Issue
Projects
None yet
Development

No branches or pull requests

3 participants