diff --git a/samples/MicroserviceDemo/applications/AuthServer.Host/AuthServerDataSeeder.cs b/samples/MicroserviceDemo/applications/AuthServer.Host/AuthServerDataSeeder.cs index 03850e6d4f..835e55cf49 100644 --- a/samples/MicroserviceDemo/applications/AuthServer.Host/AuthServerDataSeeder.cs +++ b/samples/MicroserviceDemo/applications/AuthServer.Host/AuthServerDataSeeder.cs @@ -57,6 +57,7 @@ namespace AuthServer.Host }; await CreateApiResourceAsync("IdentityService", commonApiUserClaims); + await CreateApiResourceAsync("TenantManagementService", commonApiUserClaims); await CreateApiResourceAsync("BloggingService", commonApiUserClaims); await CreateApiResourceAsync("ProductService", commonApiUserClaims); await CreateApiResourceAsync("InternalGateway", commonApiUserClaims); diff --git a/samples/MicroserviceDemo/microservices/TenantManagementService.Host/TenantManagementServiceHostModule.cs b/samples/MicroserviceDemo/microservices/TenantManagementService.Host/TenantManagementServiceHostModule.cs index 946de5b37e..43de1b2a3a 100644 --- a/samples/MicroserviceDemo/microservices/TenantManagementService.Host/TenantManagementServiceHostModule.cs +++ b/samples/MicroserviceDemo/microservices/TenantManagementService.Host/TenantManagementServiceHostModule.cs @@ -50,7 +50,7 @@ namespace TenantManagementService.Host context.Services.AddSwaggerGen(options => { - options.SwaggerDoc("v1", new OpenApiInfo {Title = "Identity Service API", Version = "v1"}); + options.SwaggerDoc("v1", new OpenApiInfo {Title = "Tenant Management Service API", Version = "v1"}); options.DocInclusionPredicate((docName, description) => true); options.CustomSchemaIds(type => type.FullName); }); @@ -73,7 +73,7 @@ namespace TenantManagementService.Host Configure(options => { options.IsEnabledForGetRequests = true; - options.ApplicationName = "IdentityService"; + options.ApplicationName = "TenantManagementService"; }); var redis = ConnectionMultiplexer.Connect(configuration["Redis:Configuration"]); @@ -109,7 +109,7 @@ namespace TenantManagementService.Host app.UseSwagger(); app.UseSwaggerUI(options => { - options.SwaggerEndpoint("/swagger/v1/swagger.json", "Identity Service API"); + options.SwaggerEndpoint("/swagger/v1/swagger.json", "Tenant Management Service API"); }); app.UseAuditing(); app.UseMvcWithDefaultRouteAndArea(); diff --git a/samples/MicroserviceDemo/microservices/TenantManagementService.Host/appsettings.Development.json b/samples/MicroserviceDemo/microservices/TenantManagementService.Host/appsettings.Development.json index 8983e0fc1c..f999bc20e7 100644 --- a/samples/MicroserviceDemo/microservices/TenantManagementService.Host/appsettings.Development.json +++ b/samples/MicroserviceDemo/microservices/TenantManagementService.Host/appsettings.Development.json @@ -1,9 +1,9 @@ { "Logging": { "LogLevel": { - "Default": "Information", - "Microsoft": "Warning", - "Microsoft.Hosting.Lifetime": "Information" + "Default": "Debug", + "System": "Information", + "Microsoft": "Information" } } -} +} \ No newline at end of file diff --git a/samples/MicroserviceDemo/microservices/TenantManagementService.Host/appsettings.json b/samples/MicroserviceDemo/microservices/TenantManagementService.Host/appsettings.json index d9d9a9bff6..3a0c8e3c57 100644 --- a/samples/MicroserviceDemo/microservices/TenantManagementService.Host/appsettings.json +++ b/samples/MicroserviceDemo/microservices/TenantManagementService.Host/appsettings.json @@ -1,10 +1,32 @@ { + "AuthServer": { + "Authority": "http://localhost:64999", + "ApiName": "TenantManagementService" + }, + "ConnectionStrings": { + "Default": "Server=localhost;Database=MsDemo_Identity;Trusted_Connection=True;MultipleActiveResultSets=true" + }, + "ElasticSearch": { + "Url": "http://localhost:9200" + }, + "Redis": { + "Configuration": "127.0.0.1" + }, + "RabbitMQ": { + "Connections": { + "Default": { + "HostName": "localhost" + } + }, + "EventBus": { + "ClientName": "MsDemo_TenantManagementService", + "ExchangeName": "MsDemo" + } + }, "Logging": { "LogLevel": { - "Default": "Information", - "Microsoft": "Warning", - "Microsoft.Hosting.Lifetime": "Information" + "Default": "Warning" } }, "AllowedHosts": "*" -} +} \ No newline at end of file