Roles

.NET

IdentityServer4 授权配置AllowedScopes实例

36 0

1. 业务场景IdentityServer4 授权配置Client中的AllowedScopes,设置的是具体的 API 站点名字,也就是使用方设置的ApiName,示例代码://授权中心配置new Client {ClientId = "client_id_1",AllowedGrantTypes = GrantTypes.ResourceOwnerPassword,AllowOfflineAccess = true,AccessTokenLifetime = 3600 * 6, //6小时Slidin