【发布时间】:2016-09-01 01:04:46
【问题描述】:
只是问,有没有办法保护不同范围的不同控制器或动作? 到目前为止,我只看到了整个应用程序的一个全局范围。
在身份服务器 3 中似乎有一个 ScopeAuthorize 属性,但我在 IdentityServer4 中找不到它。
【问题讨论】:
标签: validation scope attributes authorize-attribute identityserver4
只是问,有没有办法保护不同范围的不同控制器或动作? 到目前为止,我只看到了整个应用程序的一个全局范围。
在身份服务器 3 中似乎有一个 ScopeAuthorize 属性,但我在 IdentityServer4 中找不到它。
【问题讨论】:
标签: validation scope attributes authorize-attribute identityserver4
见https://github.com/IdentityServer/IdentityServer4/issues/247。 因此,您创建一个策略,然后在授权属性中使用该策略。
【讨论】: