IMPORTANT!
This forum is now archived. Click here for the New Support Forum
Forum breadcrumbs - You are here:Old/Archived Support ForumPublic Forum: QuickApp SupportTicket Session Time Length
Ticket Session Time Length
Matthew Stobber@matthew_stobber
2 Posts
#1 · January 5, 2018, 4:16 pm
Quote from Matthew Stobber on January 5, 2018, 4:16 pmSorry for such a simple question, but where do I tweak how long the user cookie lasts? It seems to only last for 30 minutes, and then I start getting 401 unauthorized errors. Thank you.
Sorry for such a simple question, but where do I tweak how long the user cookie lasts? It seems to only last for 30 minutes, and then I start getting 401 unauthorized errors. Thank you.
Click for thumbs down.0Click for thumbs up.0
Eben Monney@adentum
154 Posts
#2 · January 5, 2018, 6:01 pm
Quote from Eben Monney on January 5, 2018, 6:01 pm
- Cookies are not used in the template. I believe you're referring to authorization tokens (accessToken, identityToken, refreshToken)
- You shouldn't have to extend the token lifetime. Because with the implementation in the template, the tokens are automatically renewed when they expire. If your's is not renewing for some reason you need to debug it from this file: endpoint-factory.service.ts
- If you still need to extend the token lifetime you can do it from: Startup.cs:
options.SetAccessTokenLifetime(TimeSpan.FromMinutes(YOUR_VALUE)); options.SetAuthorizationCodeLifetime(TimeSpan.FromMinutes(YOUR_VALUE)); options.SetIdentityTokenLifetime(TimeSpan.FromMinutes(YOUR_VALUE)); options.SetRefreshTokenLifetime(TimeSpan.FromMinutes(YOUR_VALUE));
- See this stackoverflow post
- Documentation can be found here
AuthorizationCodeLifetime
AccessTokenLifetime
IdentityTokenLifetime
RefreshTokenLifetimeTimeSpan The period of time
the token or code
remains valid after
being issued.5 minutes
1 hour
20 minutes
14 days
- Cookies are not used in the template. I believe you're referring to authorization tokens (accessToken, identityToken, refreshToken)
- You shouldn't have to extend the token lifetime. Because with the implementation in the template, the tokens are automatically renewed when they expire. If your's is not renewing for some reason you need to debug it from this file: endpoint-factory.service.ts
- If you still need to extend the token lifetime you can do it from: Startup.cs:
options.SetAccessTokenLifetime(TimeSpan.FromMinutes(YOUR_VALUE)); options.SetAuthorizationCodeLifetime(TimeSpan.FromMinutes(YOUR_VALUE)); options.SetIdentityTokenLifetime(TimeSpan.FromMinutes(YOUR_VALUE)); options.SetRefreshTokenLifetime(TimeSpan.FromMinutes(YOUR_VALUE));
- See this stackoverflow post
- Documentation can be found here
AuthorizationCodeLifetime
AccessTokenLifetime
IdentityTokenLifetime
RefreshTokenLifetimeTimeSpan The period of time
the token or code
remains valid after
being issued.5 minutes
1 hour
20 minutes
14 days
Click for thumbs down.0Click for thumbs up.0
Last edited on January 5, 2018, 6:05 pm by Deleted user
#3 · January 5, 2018, 10:08 pm
Quote from Matthew Stobber on January 5, 2018, 10:08 pmAh, my mistake. Thank you very much!
Ah, my mistake. Thank you very much!
Click for thumbs down.0Click for thumbs up.0
IMPORTANT!
This forum is now archived. Click here for the New Support Forum