Moved some app settings to coded values.

Because these values shouldn't be changed for this appliction.
This commit is contained in:
Harrison Deng 2021-05-25 18:08:14 -05:00
parent 1fff881df4
commit bbb2d4bd04
2 changed files with 6 additions and 9 deletions

View File

@ -1,11 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace MultiShop.Server
{
@ -18,6 +15,11 @@ namespace MultiShop.Server
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureAppConfiguration((hostingContext, config) =>
config.AddInMemoryCollection(new Dictionary<string, string>() {
{"IdentityServer:Clients:MultiShop.Client:Profile", "IdentityServerSPA"}
})
)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();

View File

@ -15,12 +15,7 @@
}
},
"IdentityServer": {
"Registration": "enabled",
"Clients": {
"MultiShop.Client": {
"Profile": "IdentityServerSPA"
}
}
"Registration": "enabled"
},
"AllowedHosts": "*"
}