【问题标题】:Retrieving the "sid" claim from the IdP EndSessionEndpoint in IdentityServer 5?从 IdentityServer 5 中的 IdP EndSessionEndpoint 检索“sid”声明?
【发布时间】:2021-06-11 15:54:47
【问题描述】:

我有一个使用 Duende IdentityServer 5.0.4 中间件的有效 IdP。

在 Web 应用程序中,我有一个注销链接,该链接执行 302 重定向到通过发现客户端检索到的 EndSessionEndpoint。

在 IdP 的注销确认页面上,用户的可用声明为:sub、amr、name、idp 和 authtime。 'sid' 声明不可用。

如何指示 EndSessionEndpoint 要求“sid”声明?有没有办法从 idsrv cookie 中读取当前用户的 sid 声明?

任何提示将不胜感激。我目前正在通过 302 重定向的查询字符串明确传递 sid 声明作为一种解决方法,但我想尽快删除它。

谢谢!

PS - 我知道 id_token_hint 参数,但我希望我的用户收到“您确定要注销吗?”的提示。问题。

【问题讨论】:

    标签: asp.net-core duende identityserver5


    【解决方案1】:

    事实证明,使用 IIdentityServerInteractionService 中的 GetLogoutContextAsync() 评估 LogoutId 值提供了 SessionId 值。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-06-20
      • 2023-03-22
      • 2015-12-13
      • 2017-02-11
      • 1970-01-01
      • 2015-12-10
      • 1970-01-01
      • 2016-11-10
      相关资源
      最近更新 更多