Click here to Skip to main content
15,887,892 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Based on request type(b2e or b2c) the code should pick the configuration from appsettings.js and redirect to the correct tenant for authentication.

AzureAdB2E is config settings in appsettings.json eg:"Instance,Domain,ClientId" etc.

AzureAdB2C is config settings in appsettings.json eg:"Instance,Domain,ClientId" etc.

What I have tried:

services.AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme)
.AddMicrosoftIdentityWebApp(Configuration.GetSection("AzureAdB2E"))
.Services.AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme)
.AddMicrosoftIdentityWebApp(Configuration.GetSection("AzureAdB2C"));

The Error:

Name Value Type

Message "Scheme already exists: Cookies" string
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900