-
Notifications
You must be signed in to change notification settings - Fork 219
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
Question - Recommended expiration setting #786
Comments
@dmcweeney : this is an interesting question, but we'd want to understand your scenario a bit more:
|
Hi @jmprieur, No concerns from a security perspective.
So it is really trying to balance the user accessing the app versus token purge (which would require the user to sign back into the app again) versus redis cache memory usage? Any thoughts greatly appreciated. Thanks, Donal |
Hi, |
@Mek7 correct its a design decision related to picking a good number...
Correct however if the user does not come back to login, the entry stays in the redis cache and it will never get expired, eventually using all the allocated cache storage. |
Thanks @Mek7 @dmcweeney for this discussion Closing this issue for now. |
Hi @jmprieur, so if we have access token life time of 1 hour, we should set the cache expiration to, say 90 minutes to balance the cache storage and re-authentication traffic(give the refresh token a chance to work?). |
Thanks for the update, @creativebrother |
@creativebrother we've updated the documentation around cache eviction. thanks. |
Hi,
Quick question - I'm wondering what you recommended SlidingExpiration setting would/should be in relation to token lifetimes when using the distributed cache.
Thanks, Donal
The text was updated successfully, but these errors were encountered: