gpt4 book ai didi

c# - wa=wsignupcleanup1.0 不会在依赖方注销用户

转载 作者:太空宇宙 更新时间:2023-11-03 22:12:35 25 4
gpt4 key购买 nike

在我们使用 Windows Identity Foundation 的项目上工作。在测试注销解决方案时,我发现以下调用 http://rp/?wa=wsignoutcleanup1.0不会删除 RP 上的 FedAuth cookie。这反过来又使用户在 RP 上保持登录状态。

为了补救这种情况,我在 Global.asax 中添加了以下代码:

protected void Application_Start()
{
FederatedAuthentication.WSFederationAuthenticationModule.SigningOut += new EventHandler<SigningOutEventArgs>(WSFederationAuthenticationModule_SigningOut);
}

void WSFederationAuthenticationModule_SigningOut(object sender, SigningOutEventArgs e)
{
FederatedAuthentication.SessionAuthenticationModule.DeleteSessionTokenCookie();
}

但是 WIF 不应该自动处理这个问题吗?或者这是这样做的方法吗?

最佳答案

确保所有 url 大小写匹配,即使是 IIS 中的应用程序名称、网站名称大小写也应与 configs 中的 url 匹配。我很难追踪到这一点。看这里:wasignoutcleanup issue

关于c# - wa=wsignupcleanup1.0 不会在依赖方注销用户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6139927/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com