I have ASP.NET 2.2 Web API App using Azure AD B2C for auth
I have three roles requirements. Each role has different Azure AD B2C policies and a user can have one and only one role.
Currently adding roles with B2C is convoluted:
Authorize By Group in Azure Active Directory B2C
And to solve the role and policies per role, I am considering having multiple Azure AD B2C Applications within one ASP.NET Core Web API.
My ASP.NET Config for Azure AD B2C in the Startup.cs
looks as follow:
services.AddAuthentication(AzureADB2CDefaults.JwtBearerAuthenticationScheme)
.AddAzureADB2CBearer(o => Configuration.Bind("AzureAdB2C", o));
Is having multiple Azure AD B2C ClientIDs (Application IDs) possible in ASP.NET Core? Are there libraries to do so? Do you have a better suggestion?