Skip to content

Commit ec8ae82

Browse files
committed
remove key vault
1 parent fb5937d commit ec8ae82

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

WMS.WebUI/WMS.WebUI/Program.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using Azure.Identity;
21
using Microsoft.ApplicationInsights.Extensibility;
32
using Microsoft.AspNetCore.Authentication.JwtBearer;
43
using Microsoft.IdentityModel.Tokens;
@@ -28,7 +27,8 @@
2827
builder.Services.AddScoped<ITransactionsStore, TransactionsStore>();
2928
builder.Services.AddScoped<IUserAgentService, UserAgentService>();
3029
builder.Services.AddSyncfusion(builder.Configuration);
31-
builder.Services.AddAuthentication(options =>
30+
builder.Services
31+
.AddAuthentication(options =>
3232
{
3333
options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme;
3434
options.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme;
@@ -72,9 +72,9 @@
7272

7373
if (app.Environment.IsProduction())
7474
{
75-
builder.Configuration.AddAzureKeyVault(
76-
new Uri("https://wms-webui-configurations.vault.azure.net/"),
77-
new DefaultAzureCredential());
75+
//builder.Configuration.AddAzureKeyVault(
76+
// new Uri("https://wms-webui-configurations.vault.azure.net/"),
77+
// new DefaultAzureCredential());
7878

7979
builder.Host.UseSerilog((context, configuration) => configuration
8080
.MinimumLevel.Debug()

WMS.WebUI/WMS.WebUI/appsettings.Production.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,12 @@
55
"Microsoft.AspNetCore": "Warning"
66
}
77
},
8-
"AllowedHosts": "*"
8+
"AllowedHosts": "*",
9+
"Keys": {
10+
"ApiKey": "1234",
11+
"Syncfusion": "Mgo+DSMBMAY9C3t2U1hhQlJBfV5AQmBIYVp/TGpJfl96cVxMZVVBJAtUQF1hTX5UdkFiWH5ZcXVURWBU"
12+
},
13+
"API": {
14+
"Url": "https://w2sc5qx5-7097.inc1.devtunnels.ms/api/"
15+
}
916
}

0 commit comments

Comments
 (0)