Browse Source

Platform menu seed added API Scope management page

pull/164/head
cKey 5 years ago
parent
commit
582b04e149
  1. 23
      aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/PlatformDataSeedContributor.cs

23
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<string, object>()
{
{ "title", "api-scopes" },
{ "icon", "api-scopes" },
{ "roles", new string[]{ "AbpIdentityServer.ApiScopes" } }
},
new string[] { "admin" });
}
private async Task SeedAuditingMenuAsync(Layout layout, Data data)

Loading…
Cancel
Save