I'm working on a legacy project that uses .NET Framework 4.6.2, and I need to integrate Azure AD B2C for user authentication. While I've successfully set up Azure B2C and implemented the authentication with .NET Core, I'm struggling to achieve the same integration with .NET Framework 4.6.2.
I'd appreciate guidance on how to start this integration, as well as any code examples, tutorials, or best practices that can help me set up Azure B2C authentication with .NET Framework 4.6.2. Even a simple code snippet for a login button would be extremely helpful. I understand that this is an older technology stack, but I believe it's still feasible.
Thanks @Panagiotis Kanavos and jdweng for the comments.
As mentioned by Panagiotis Kanavos, we have a MSDoc which explains the clear steps to Integrate ADB2C in a Framework Application (GitHub samples).
You can Integrate Azure ADB2C directly from VS while creating the Web App Template.
Microsoft Identity platform
.msidentity
.ADB2C
=> click onCreate new
and continue with next steps.App registrations
section in ADB2C.ASPFramework
, you can check the same in the ADB2C.Visual Studio:
In Portal:
Dependency Configuration progress:
StartupAuth.cs
under App_Start,Web.config
,.csproj
for the automatically Integrated code and packages.Output: