question

StevenMiller-4547 avatar image
2 Votes"
StevenMiller-4547 asked ·

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

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://docs.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?




azure-ad-b2c
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I feel your pain! I just discovered a git repo with what look like some useful samples in netcore 3.1. Use it, don't use it :-)

https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2

1 Vote 1 · ·

0 Answers