The following tables provide links to samples for integrating Azure AD B2C as an identity provider.
Platform | Libraries | Documentation | Description |
---|---|---|---|
.NET Core | Microsoft.AspNetCore.Authentication.JwtBearer | Documentation | |
.NET Framework | Microsoft.Owin.Security.Jwt | Documentation | A combined sample for a .NET web application that calls a .NET Web API, both secured using Azure AD B2C. |
Node.JS, express | passport | Documentation | A small node.js Web API sample for Azure AD B2C that shows how to protect your web api and accept B2C access tokens using passport.js. |
Platform | Libraries | Documentation | Description |
---|---|---|---|
.NET Core MVC | Microsoft.AspNetCore .Authentication.AzureADB2C.UI |
Documentation | Demonstrates how to implement sign-in to Microsoft through a .NET Core MVC solution by using a traditional web browser-based application and OpenID Connect. |
.NET Framework MVC 5 | Microsoft.Owin.Security.OpenIdConnect and Microsoft.Owin.Security.Cookies | Documentation | Demonstrates how to implement sign-in to Microsoft through an ASP.NET MVC solution by using a traditional web browser-based application and OpenID Connect. |
.NET Framework MVC 5 | Microsoft.Owin.Security.OpenIdConnect, Microsoft.Owin.Security.Cookies and Microsoft.Identity.Client to obtain the tokens from Azure AD B2C | Documentation | Demonstrates how to implement sign-in to Microsoft through an ASP.NET MVC solution by using a traditional web browser-based application and the Authorization code grant flow, which allows the app to call a REST API with an access token. |