如何为每个应用程序设置不同的角色?

How to setup different roles per application?

我们计划使用 IdentityServer 进行单点登录。我们有多个应用程序,每个应用程序的用户具有不同的角色。我不清楚。我们如何设置它?

请发出您当前需要实施声明提供程序的特定于应用程序的声明。

https://identityserver.github.io/Documentation/docs/configuration/serviceFactory.html

在 v2 中,这会更容易,因为用户服务将了解更多客户端详细信息。