diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/PlatformDataSeedContributor.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/PlatformDataSeedContributor.cs index 63945d0f9..491925525 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/PlatformDataSeedContributor.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/PlatformDataSeedContributor.cs @@ -415,7 +415,7 @@ namespace LINGYUN.Platform { "title", "identity-server" }, { "icon", "identity-server" }, { "alwaysShow", true }, - { "roles", new string[]{ "AbpIdentityServer.Clients", "AbpIdentityServer.ApiResources", "AbpIdentityServer.IdentityResources" } } + { "roles", new string[]{ "AbpIdentityServer.Clients", "AbpIdentityServer.ApiResources", "AbpIdentityServer.IdentityResources", "AbpIdentityServer.ApiScopes" } } }, new string[] { "admin" }); @@ -462,7 +462,7 @@ namespace LINGYUN.Platform data, "identity-resources", "identity-resources", - CodeNumberGenerator.AppendCode(identityServerMenu.Code, CodeNumberGenerator.CreateCode(2)), + CodeNumberGenerator.AppendCode(identityServerMenu.Code, CodeNumberGenerator.CreateCode(3)), "views/admin/identityServer/identity-resources/index.vue", "Manage Identity Resources", "", @@ -476,6 +476,25 @@ namespace LINGYUN.Platform { "roles", new string[]{ "AbpIdentityServer.IdentityResources" } } }, new string[] { "admin" }); + await SeedMenuAsync( + layout, + data, + "api-scopes", + "api-scopes", + CodeNumberGenerator.AppendCode(identityServerMenu.Code, CodeNumberGenerator.CreateCode(4)), + "views/admin/identityServer/api-scopes/index.vue", + "Manage Api Scopes", + "", + "Manage Api Scopes", + identityServerMenu.Id, + layout.TenantId, + new Dictionary() + { + { "title", "api-scopes" }, + { "icon", "api-scopes" }, + { "roles", new string[]{ "AbpIdentityServer.ApiScopes" } } + }, + new string[] { "admin" }); } private async Task SeedAuditingMenuAsync(Layout layout, Data data)