【问题标题】:WIF: Determining whether a user has a valid session with the STSWIF:确定用户是否与 STS 有有效会话
【发布时间】:2012-01-13 06:08:50
【问题描述】:

在基于 Windows Identity Foundation 的 SSO 实施中,是否有一种方法可以从某个依赖方的默认未受保护页面中确定用户是否与 STS 进行了有效会话?

【问题讨论】:

    标签: c# asp.net wif


    【解决方案1】:

    只需检查声明 - 要有有效的声明,用户必须有一个有效的会话。

    或使用:

    httpContextBase.User.Identity.IsAuthenticated

    IsAuthenticated 表示存在令牌(仅在用户登录时发生)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-04-04
      • 1970-01-01
      • 1970-01-01
      • 2011-01-13
      • 1970-01-01
      • 1970-01-01
      • 2017-07-08
      • 1970-01-01
      相关资源
      最近更新 更多