Browse Source

updated identityserver dataseeder

pull/67/head
Galip Tolga Erdem 5 years ago
parent
commit
edcfd0fc1e
  1. 12
      services/identity/src/EShopOnAbp.IdentityService.HttpApi.Host/DbMigrations/IdentityServerDataSeeder.cs
  2. 2
      services/identity/src/EShopOnAbp.IdentityService.HttpApi.Host/appsettings.json

12
services/identity/src/EShopOnAbp.IdentityService.HttpApi.Host/DbMigrations/IdentityServerDataSeeder.cs

@ -83,7 +83,7 @@ namespace EShopOnAbp.IdentityService.DbMigrations
"role" "role"
}; };
await CreateApiResourceAsync("AuthServer", commonApiUserClaims); await CreateApiResourceAsync("AccountService", commonApiUserClaims);
await CreateApiResourceAsync("IdentityService", commonApiUserClaims); await CreateApiResourceAsync("IdentityService", commonApiUserClaims);
await CreateApiResourceAsync("AdministrationService", commonApiUserClaims); await CreateApiResourceAsync("AdministrationService", commonApiUserClaims);
await CreateApiResourceAsync("CatalogService", commonApiUserClaims); await CreateApiResourceAsync("CatalogService", commonApiUserClaims);
@ -94,7 +94,7 @@ namespace EShopOnAbp.IdentityService.DbMigrations
private async Task CreateApiScopesAsync() private async Task CreateApiScopesAsync()
{ {
await CreateApiScopeAsync("AuthServer"); await CreateApiScopeAsync("AccountService");
await CreateApiScopeAsync("IdentityService"); await CreateApiScopeAsync("IdentityService");
await CreateApiScopeAsync("AdministrationService"); await CreateApiScopeAsync("AdministrationService");
await CreateApiScopeAsync("CatalogService"); await CreateApiScopeAsync("CatalogService");
@ -105,8 +105,8 @@ namespace EShopOnAbp.IdentityService.DbMigrations
private async Task CreateSwaggerClientsAsync() private async Task CreateSwaggerClientsAsync()
{ {
await CreateSwaggerClientAsync("AuthServer", await CreateSwaggerClientAsync("AccountService",
new[] { "AuthServer"}); new[] { "AccountService"});
await CreateSwaggerClientAsync("IdentityService", await CreateSwaggerClientAsync("IdentityService",
new[] { "IdentityService"}); new[] { "IdentityService"});
@ -221,7 +221,7 @@ namespace EShopOnAbp.IdentityService.DbMigrations
name: "PublicWeb", name: "PublicWeb",
scopes: commonScopes.Union(new[] scopes: commonScopes.Union(new[]
{ {
"AuthServer", "AccountService",
"AdministrationService", "AdministrationService",
"CatalogService", "CatalogService",
"BasketService", "BasketService",
@ -243,7 +243,7 @@ namespace EShopOnAbp.IdentityService.DbMigrations
name: "Web", name: "Web",
scopes: commonScopes.Union(new[] scopes: commonScopes.Union(new[]
{ {
"AuthServer", "AccountService",
"IdentityService", "IdentityService",
"AdministrationService" "AdministrationService"
}), }),

2
services/identity/src/EShopOnAbp.IdentityService.HttpApi.Host/appsettings.json

@ -54,7 +54,7 @@
"PublicWebGateway": { "PublicWebGateway": {
"RootUrl": "https://localhost:44373" "RootUrl": "https://localhost:44373"
}, },
"AuthServer": { "AccountService": {
"RootUrl": "https://localhost:44330" "RootUrl": "https://localhost:44330"
}, },
"IdentityService": { "IdentityService": {

Loading…
Cancel
Save