wa = wsignupcleanup1.0不会在依赖方上注销用户
||
在使用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难道不应该自动处理吗?
还是这种方式?
没有找到相关结果
已邀请:
2 个回复
吞睫素
递劝臼类洪