You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/security/authentication/azure-ad-b2c.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ author: guardrex
4
4
description: Discover how to set up Azure Active Directory B2C authentication with ASP.NET Core.
5
5
ms.author: wpickett
6
6
ms.custom: "devx-track-csharp, mvc"
7
-
ms.date: 01/22/2026
7
+
ms.date: 02/27/2026
8
8
uid: security/authentication/azure-ad-b2c
9
9
---
10
10
# Cloud authentication with Azure Active Directory B2C in ASP.NET Core
@@ -16,7 +16,7 @@ By [Damien Bod](https://github.com/damienbod)
16
16
[Azure Active Directory B2C](/azure/active-directory-b2c/active-directory-b2c-overview) (Azure AD B2C) is a cloud identity management solution for web and mobile apps. The service provides authentication for apps hosted in the cloud and on-premises. Authentication types include individual accounts, social network accounts, and federated enterprise accounts. Additionally, Azure AD B2C can provide multi-factor authentication with minimal configuration.
17
17
18
18
> [!TIP]
19
-
> Microsoft Entra ID, Microsoft Entra External ID and Azure AD B2C are separate product offerings. An Entra ID tenant generally represents an organization, while an Azure AD B2C tenant or a Microsoft Entra External ID tenant can represent a collection of identities to be used with relying party applications. To learn more, see [Azure AD B2C: Frequently asked questions (FAQ)](/azure/active-directory-b2c/active-directory-b2c-faqs).
19
+
> Microsoft Entra ID, Microsoft Entra External ID and Azure AD B2C are separate product offerings. An Entra ID tenant generally represents an organization, while an Azure AD B2C tenant or a Microsoft Entra External ID tenant can represent a collection of identities to be used with relying party applications. To learn more, see [Azure AD B2C: Frequently asked questions (FAQ)](/azure/active-directory-b2c/active-directory-b2c-faqs).
20
20
21
21
> [!TIP]
22
22
> [Microsoft Entra External ID for customers](/azure/active-directory/external-identities/customers/overview-customers-ciam) is Microsoft’s new customer identity and access management (CIAM) solution.
@@ -68,6 +68,7 @@ In this tutorial, you'll learn how to configure an ASP.NET Core app for authenti
68
68
* For **Domain**, use the domain of your Azure AD B2C tenant.
69
69
* For **ClientId**, use the **Application (client) ID** from the app registration you created in your tenant.
70
70
* For **Instance**, use the domain of your Azure AD B2C tenant.
71
+
* For **TenantId**, use the **Tenant ID** from your Azure AD B2C tenant. In the Azure portal, search for and select **Microsoft Entra ID**. In the **Overview**, copy the **Tenant ID**.
71
72
* For **SignUpSignInPolicyId**, use the user flow policy defined in the Azure B2C tenant
72
73
* Use either the **ClientSecret** or the **ClientCertificates** configuration. ClientCertificates are recommended.
73
74
* Leave all other values as they are.
@@ -102,7 +103,7 @@ In this tutorial, you'll learn how to configure an ASP.NET Core app for authenti
102
103
103
104
In the preceding code:
104
105
105
-
* Calls to the `AddAuthentication` and `AddMicrosoftIdentityWebApp` methods configure the app to use Open ID Connect, specifically configured for the Microsoft identity platform.
106
+
* Calls to the `AddAuthentication` and `AddMicrosoftIdentityWebApp` methods configure the app to use OpenID Connect, specifically configured for the Microsoft identity platform.
106
107
* `AddAuthorization` initializes ASP.NET Core authorization.
107
108
* The `AddRazorPages` call configures the app so anonymous browsers can view the Index page. All other requests require authentication.
108
109
* `AddMvcOptions` and `AddMicrosoftIdentityUI` add the required UI components for redirecting to/from Azure AD B2C.
@@ -116,7 +117,7 @@ In this tutorial, you'll learn how to configure an ASP.NET Core app for authenti
116
117
## Run the app
117
118
118
119
> [!NOTE]
119
-
> Use the profile which matches the Azure App registration **Redirect URIs**
120
+
> Use the profile which matches the Azure App registration **Redirect URIs**.
0 commit comments