WIF - FederatedSignOut 没有让用户退出所有网站 [英] WIF - FederatedSignOut not signing user out all sites

查看:20
本文介绍了WIF - FederatedSignOut 没有让用户退出所有网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Windows Identity Foundation.(使用一些 MVC 2.0 站点)

I am using Windows Identity Foundation. (With some MVC 2.0 sites)

我在让某人退出受 WIF 保护的所有网站时遇到了真正的问题.

I am having real problem signing someone out of all the sites protected by WIF.

看起来我的退出只是让当前站点上的人退出.

It looks like my sign out is only signing people out on the current site.

这是我的代码

public void FederatedSignOut(string replyUrl)
       {             

        var authModule = FederatedAuthentication.WSFederationAuthenticationModule;
        WSFederationAuthenticationModule.FederatedSignOut(new Uri(authModule.Issuer),  new Uri(replyUrl));
     }

运行此代码后,我仍然可以浏览用户访问过的任何其他站点.但是我退出了我退出的网站.

After running this code i can still browse to any other sites that the user has visited. But i am logged out of the site i signed out of.

联合注销是否有效?

非常感谢

推荐答案

是的,联合注销有效,但并不总是 :-).你用的是什么STS?(例如 ADFS?你自己的?)

Yes, Federated Sign Out works, but not always :-). What STS are you using? (e.g. ADFS? your own?)

这里有一些介绍信息:http://msdn.microsoft.com/en-us/library/ff359102.aspx#sec9

There's some introduction information here: http://msdn.microsoft.com/en-us/library/ff359102.aspx#sec9

看看我们的模拟"sts 如何处理退出.

Check out how our "mock" sts handles Sign Out.

这篇关于WIF - FederatedSignOut 没有让用户退出所有网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆