Skip to content

Commit c55ff40

Browse files
committed
add key vault
1 parent 00e1d2b commit c55ff40

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

WMS.WebUI/WMS.WebUI/Program.cs

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using Azure.Identity;
12
using Microsoft.AspNetCore.Authentication.JwtBearer;
23
using Microsoft.IdentityModel.Tokens;
34
using Serilog;
@@ -71,9 +72,9 @@
7172

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

7879
//builder.Host.UseSerilog((context, configuration) => configuration
7980
// .MinimumLevel.Debug()

0 commit comments

Comments
 (0)