Question: Why DefaultCookieTimeSpan is set by default to 10 hours?
I see that by default in AspNetCore timespan is set to 14 days, but for IdentityServer defaults it sets to 10 hours. Can you provide reasons for reduce this time? Now i have an issue when use renew access_token after 10 hours and set CookieLifetime to 24 hours, but what possible risks it intoduced?
To be more precise: 10 hour, no sliding. It was chosen because it's a reasonable and safe default. You can change it to anything you want.
And why it is more safe? What kind of attacks can use an extended lifetime for this cookie? I know that i can extend this, but want to know about reason to reduce it for default in IdSrv4.
In our experience, most uses of IdentityServer expect a 10 hour fixed SSO session. It's a reasonable and safe default. I think the context is important too -- a user's lifetime in the SSO server is different than a user's lifetime in a general purpose ASP.NET Core MVC app.
Perhaps you should be asking why Microsoft chose 14 days by default for their cookie.
Microsoft's own internal Kerberos setting is 11 hours. It was meant to correspond to a work day so that the net effect was to force a new signin for a new day. So I can see extending the 10 hour range a little, but multiple days seems (to me at least) as unwise.
Yes, and @TomCJones's source is what we basically modeled our choice on.
Ok. Thanks.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.