繁体   English   中英

闲置30分钟后,使用ADFS身份验证登录的用户将重定向到ADFS服务器

[英]User logged in using ADFS auth is getting redirected to ADFS server after 30 minutes of idle time

Web应用程序正在使用ADFS进行身份验证。成功登录应用程序后,我使应用程序保持空闲状态约30分钟。 现在,当用户尝试转到页面时,应用程序将重定向到ADFS门户并获得身份验证。 我将persistenSessionLifeTime设置为60天。我可以在chrome开发人员工具中正确看到FedAuth令牌的过期时间。 请在下面找到配置。 为什么每30分钟要进行一次? 我知道一些由ADFS发行的令牌即将过期。 您能帮我解决这个问题吗?

    <system.identityModel>
    <identityConfiguration saveBootstrapContext="true">
      <claimsAuthenticationManager type="TruckDataWebAPI.Controllers.AuthenticationManager,TruckDataWebAPI" />
      <audienceUris>
        <add value="xxxxxxxxxxxxxxxx" />
      </audienceUris>
      <issuerNameRegistry type="System.IdentityModel.Tokens.ConfigurationBasedIssuerNameRegistry, System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
        <trustedIssuers>
          <add thumbprint="xxxxxxxxxxxxxxxxx" name="xxxxxxxxxxxxxxxxxxx" />
          <add thumbprint="xxxxxxxxxxxxxxxxxx" name="xxxxxxxxxxxxxxxxxxxxx"/>
        </trustedIssuers>
      </issuerNameRegistry>
    </identityConfiguration>
  </system.identityModel>
  <system.identityModel.services>
    <federationConfiguration>
      <wsFederation  passiveRedirectEnabled="false" issuer="xxxxxxxxxxxxxxxxx" persistentCookiesOnPassiveRedirects="true" realm="xxxxxxxxxxxxxxxx" reply="xxxxxxxxxxxxxxx" requireHttps="true"  />
      <cookieHandler  mode="Default" requireSsl="true" persistentSessionLifetime="60.0:0:0" />
    </federationConfiguration>
  </system.identityModel.services>

有两个令牌。 ADFS 1和RP(应用程序)1。

您需要同时设置两者。

另外,请确保ADFS值较小,以便当RP令牌超时时,ADFS也将要求用户再次进行身份验证。

这里很好的概述。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM