我正在设置IDS,我的主机项目的Startup.cs文件中包含以下内容:
idsrvApp.UseIdentityServer(new IdentityServerOptions
{
SiteName = "My SSO",
SigningCertificate = LoadSigningCertificate(),
AuthenticationOptions = new AuthenticationOptions
{
EnablePostSignOutAutoRedirect = true,
CookieOptions = new CookieOptions
{
AllowRememberMe = false,
IsPersistent = true,
SlidingExpiration = true,
ExpireTimeSpan = new TimeSpan(14, 0, 0, 0)
},
EnableSignOutPrompt = false
},
EventsOptions = new EventsOptions
{
RaiseErrorEvents = true,
RaiseFailureEvents = true,
RaiseInformationEvents = true,
RaiseSuccessEvents = true
},
Factory = factory
});

据我所知,CookieOptions设置为:
IsPersistent = true,SlidingExpiration = true,ExpireTimeSpan = new TimeSpan(14,0,0,0)
应该为IDS保留一个Cookie,该ID会在用户最初使用滑动窗口登录两周后自动登录该用户。这不会发生。用户在24小时后退出应用程序,并需要在IDS登录页面上重新输入凭据。
我也看到应用程序中有大量的nonce cookie ...这很奇怪。有时它会说请求太长 - 我认为这是相关的。
请帮忙。