Refresh tokens
See original GitHub issueShouldn’t those be serialized and sent to the client? Otherwise how will the client know when to update the token:
[JsonIgnore] public DateTime AccessExpiry { get; internal set; }
[JsonIgnore] public DateTime RefreshExpiry { get; internal set; }
Also, woudn’t it be better if DateTime was DateTimeOffset?
EDIT: Also, once i use the refresh token to get a new access token the new token does not seem to contain the claims. As far as i can tell everything has been set up properly inside SetRenewalPrivilegesAsync
method.
EDIT: After some testing it seems that the priviledges are only not working if you await something within SetRenewalPrivilegesAsync
Issue Analytics
- State:
- Created 8 months ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
What Are Refresh Tokens and How to Use Them Securely
That is, a refresh token is a credential artifact that lets a client application get new access tokens without having to ask the...
Read more >Understanding Refresh Tokens
A refresh token allows an application to obtain a new access token without prompting the user. Learn about the de facto standard for...
Read more >What is the purpose of a "Refresh Token"?
Refresh Tokens are credentials used to obtain access tokens. Refresh tokens are issued to the client by the authorization server and are used...
Read more >What is a Refresh Token - OAuth 2.0
An OAuth Refresh Token is a string that the OAuth client can use to get a new access token without the user's interaction....
Read more >Refresh tokens in the Microsoft identity platform
The refresh token is used to obtain new access and refresh token pairs when the current access token expires. Refresh tokens are also...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Refresh-Tokens-Demo.zip
check out this updated project. it’s simply a matter of adding a getter only (calculated) property to your derived class, which just transforms the datetime to whatever format the front-end client is capable of handling.
thanks for the repro… it was a nasty bug which is now fixed in
v5.6.0.6-beta
thanks for reporting…