使用 Windows Identity Foundation 和 MVC 使声明过期
我有一个非常基本的应用程序,可以正确重定向到我的 STS,并在成功身份验证后再次返回。
我目前不确定它们如何工作的几个领域,并希望能够对它们有所了解。
1) 如何使令牌中的声明过期,例如您需要修改某人的声明,但由于令牌仍然有效,因此 10 分钟内不会发生重新颁发。
2) 如何退出认证服务以及发行站点。 EG,您在应用程序中单击注销,该应用程序又调用 WSFederationAuthenticationModule.FederatedSignOut(new Uri(s), null);
但是,当用户单击受保护资源的链接时,它会自动重定向到 STS 并让用户重新登录。
我确信这些是简单的问题,我在某处遗漏了要点,但任何帮助将不胜感激。
I've got a very basic application that is correctly redirecting to my STS and back again after successful authentication.
There's a couple of areas that I'm currently unsure as to how they work, and hoping some light can be shed on them.
1) How do you expire the claims in the token, for example you need to amend someone's claims but because the token is still valid a reissue doesn't happen for 10 minutes.
2) How do you logout from the authentication service and also out of the issuing site. E.G you click log off in your application, which in turn callsWSFederationAuthenticationModule.FederatedSignOut(new Uri(s), null);
But upon the user clicking a link to a protected resource it automatically redirects to the STS and logs the user back in.
I'm sure these are simple questions and I'm missing the point somewhere but any help would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
(1) 要使声明过期:
请参阅此 帖子了解更多信息。
(2) 查看此帖子在联合注销上。
(1) To expire the claim:
See this post for more info.
(2) Check out this post on a federated sign out.