【发布时间】:2020-01-15 17:24:07
【问题描述】:
有没有办法强制它使用 cookie 或修改超时跨度。每隔几次点击,或者如果会话理想的时间少于 3 秒,它就会一直转到 IDP。
【问题讨论】:
标签: saml-2.0 itfoxtec-identity-saml2
有没有办法强制它使用 cookie 或修改超时跨度。每隔几次点击,或者如果会话理想的时间少于 3 秒,它就会一直转到 IDP。
【问题讨论】:
标签: saml-2.0 itfoxtec-identity-saml2
ASP.NET Core 中继方示例应用程序 ASP.NET Core 身份验证,从而实际上是 cookie,其中令牌超时被转换为身份验证/cookie 生命周期。
如果问题是由短期令牌引起的,您可以在AuthController.AssertionConsumerService 中的saml2AuthnResponse.CreateSession 方法中设置身份验证/cookie 生命周期。
在这样的 ASP.NET Core 应用程序中:
await saml2AuthnResponse.CreateSession(HttpContext, claimsTransform: (claimsPrincipal) => ClaimsTransform.Transform(claimsPrincipal), lifetime: new TimeSpan(1, 0, 0));
【讨论】: