I am trying to make sense of how the various timers interact to affect the end user experience.
With a custom auth sever I know:
Access tokens: The minimum is five minutes, and the maximum is 24 hours
Refresh tokens: The minimum access token lifetime. The idle time window is at least 10 minutes, with a maximum of five years
ID tokens: Not configurable. Token lifetime is 60 minutes.
Also the Session life time can be configured. (Default 2 hours)
In the client code:
When configuring the pipeline in startup we can set the CookieAuthenticationOptions property ExpireTimeSpan to a time range.
When calling the challenge method we can set the the ExpiresUTC property of the AuthenticationProperties to a time value.
Its unclear how to adjust these to control several areas of concern.
-
Idle timeout: If a user is inactive for 20 minutes we would like the user to be logged out. Right now the time a user can be inactive is much longer and my tinkering with the settings haven’t produced an obvious candidate to control this behavior clearly.
-
Login Redirect target lifetime: After logging out of our app we redirect to the okta login page. For a period of time, that login page will remember to redirect back to our app when it is used next to login. But after some number of minutes this data seems to expire and now if the user logs in with that login page they are sent to the Okta portal. How can we extend the life of the Login redirect to be as long as possible?
Thank you for any help clarifying how these settings affect the end user experience.
-Gary