From 8bcba134f1c3fb2b23e33f90657b0e29e0bf1151 Mon Sep 17 00:00:00 2001 From: Nick Seguin Date: Sun, 25 Feb 2024 19:56:49 -0600 Subject: [PATCH] attempt to fix secret client --- src/NSeguin.Dev.Web/Program.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/NSeguin.Dev.Web/Program.cs b/src/NSeguin.Dev.Web/Program.cs index 20068c3..41f49a0 100644 --- a/src/NSeguin.Dev.Web/Program.cs +++ b/src/NSeguin.Dev.Web/Program.cs @@ -45,7 +45,7 @@ if (builder.Environment.IsStaging() || builder.Environment.IsProduction()) } a.Connect(connectionString) - .ConfigureKeyVault(kv => kv.SetCredential(new DefaultAzureCredential())); + .ConfigureKeyVault(kv => kv.SetCredential(new EnvironmentCredential())); }); } else @@ -68,7 +68,6 @@ builder.Services.Configure( builder.Services.AddTransient(); builder.Services.AddOptions().BindConfiguration("Mail").ValidateDataAnnotations(); - builder.Services.AddHttpLogging( o => { @@ -86,8 +85,6 @@ if (app.Environment.IsDevelopment()) else { app.UseExceptionHandler("/Error", true); - // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. - app.UseHsts(); } app.UseHttpLogging();