Relative Content

Tag Archive for c#asp.net-mvcazure-ad-b2cazure-keyvaultmicrosoft-entra-id

Store Azure AzureADB2C object in ASP .NET MVC application as a Key Vault secret

I have AzureADB2C object in ASP .NET MVC application stored in appsettings.json file.
I want to store Azure AzureADB2C object as a Key Vault secret and then access it from Program.cs like so:
builder.Services.AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme) .AddMicrosoftIdentityWebApp(builder.Configuration.GetSection("AzureADB2C"));