【问题标题】:IdentityServer4: scope authentication attribute?IdentityServer4:范围身份验证属性?
【发布时间】:2016-09-01 01:04:46
【问题描述】:

只是问,有没有办法保护不同范围的不同控制器或动作? 到目前为止,我只看到了整个应用程序的一个全局范围。

在身份服务器 3 中似乎有一个 ScopeAuthorize 属性,但我在 IdentityServer4 中找不到它。

【问题讨论】:

    标签: validation scope attributes authorize-attribute identityserver4


    【解决方案1】:

    https://github.com/IdentityServer/IdentityServer4/issues/247。 因此,您创建一个策略,然后在授权属性中使用该策略。

    【讨论】:

      猜你喜欢
      • 2014-06-14
      • 2018-05-12
      • 2018-01-02
      • 1970-01-01
      • 2022-11-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-12
      相关资源
      最近更新 更多