Documentation for ASP.Net Core 3 and Azure AD B2C OpenIdConnectOptions/JwtBearer/Cookie options

Steven Miller 11 Reputation points
2020-04-26T00:39:12.013+00:00

I am very frustrated. This is the third time over the past few years I have tried to integrate Azure B2C into a project and failed. I keep trying because it has so much promise. The previous two attempts I finally gave up and decided to use IdentityServer4 and successfully deployed those projects. My latest frustration is the inability to find any consistent documentation for Azure AD B2C. I do understand that the pace of change makes it easy to have incompatible instructions or references to older versions doing web searches, but there needs to be a way to target and find documentation on the latest SUPPORTED (not preview or beta) release of the software.

I followed the instructions here...

https://learn.microsoft.com/en-us/aspnet/core/security/authentication/azure-ad-b2c?view=aspnetcore-3.1


until I get to the section

Configure the underlying OpenIdConnectOptions/JwtBearer/Cookie options

and see

// Omitted for brevity

Which is the section I was the most interested in.

Then I switch to trying the examples...
https://github.com/Azure-Samples/microsoft-identity-platform-aspnetcore-webapp-tutorial

but find that they don't match the instruction in the above article. The examples use preview libraries and change the method for declaring and and setting variables.

While I understand the developer needs to have a fairly thorough understanding of OAuth and OpenID Connect to use Azure AD B2C, I need examples and documentation of how Microsoft implements the various properties and concepts.

BTW I also look into the resources such as the videos on Channel 9 but those mostly highlighted the cool features of B2C but did not get into the details of implementing. I also checked Pluralsight. There was one video that covered Azure B2C but it too skipped over the option configuration sections.

Where can I get training or find consistent documentation for implementing the latest (but not preview) version of Azure B2C with ASP.Net Core 3.1?

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,652 questions
{count} votes