dotnet-core, angular, 5.4.1 Hi all, Can anyone point me in the direction of documentation and/or code for token expiration dates? I use an Ionic app to log into Zero.
How long is the token valid for? How does sliding expiration work?
I know this is probably off-piste for Zero and more of a dotnet question but I have looked both in the code base and in the documentation and can find no detail of how to test both the expiration data and sliding expiration. Thanking you in advance....
2 Answer(s)
-
0
Can anyone point me in the direction of documentation and/or code for token expiration dates? How long is the token valid for?
tokenAuthConfig.Expiration = TimeSpan.FromDays(1);
AbpZeroTemplateWebCoreModule.cs#L98
How does sliding expiration work?
Sliding — as far as ASP.NET Zero and ABP are concerned — is only used for Caching, unrelated to tokens.
SlidingExpiration is only available for cookies. In general, sliding expiration for accessToken is wrong. That's what a refresh token is for. More: #3921@bd978aed-945f-4b70-b020-0597adbae45a
-
0
Aaron, Perfect, thanks.