【问题标题】:How to get Role Claims in IdentityServer如何在 IdentityServer 中获取角色声明
【发布时间】:2017-03-07 10:14:20
【问题描述】:

我有属于角色的用户,这些用户具有为他们指定的声明。我使用 IdentityServer(目前是第 3 版)对我的用户进行身份验证,其中 IncludeAllClaimsForUser 设置为 true。我希望 IdentityServer 能够自动检索角色声明,但它没有。

有没有办法让 IdentityServer 关心角色声明或通过 ProfileServer 进行自定义是唯一的方法?

【问题讨论】:

    标签: asp.net-core asp.net-identity identityserver3 identityserver4


    【解决方案1】:

    如果您需要用户信息,则必须使用 userinfo 端点或在请求令牌时添加与用户声明相关的范围。

    【讨论】:

      猜你喜欢
      • 2023-03-22
      • 1970-01-01
      • 2016-10-16
      • 2018-02-10
      • 2021-02-26
      • 1970-01-01
      • 2015-03-27
      • 2015-06-20
      • 2015-07-28
      相关资源
      最近更新 更多