Skip to content

Commit

Permalink
conn str in azure key vault
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliohome authored Oct 9, 2023
1 parent 7e47d03 commit aec723d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
using SimpleTodo.Api;

var builder = WebApplication.CreateBuilder(args);
// var credential = new DefaultAzureCredential();
// builder.Configuration.AddAzureKeyVault(new Uri(builder.Configuration["AZURE_KEY_VAULT_ENDPOINT"]), credential);
var credential = new DefaultAzureCredential();
builder.Configuration.AddAzureKeyVault(new Uri(builder.Configuration["AZURE_KEY_VAULT_ENDPOINT"]), credential);

builder.Services.AddScoped<ListsRepository>();
builder.Services.AddDbContext<TodoDb>(options =>
Expand Down

0 comments on commit aec723d

Please sign in to comment.