Skip to content

Commit 27fad1e

Browse files
Copilotmeaghanlewiswadepickett
authored
Add TenantId configuration instruction to Azure AD B2C docs (#36814)
* Initial plan * Add TenantId instruction to Azure AD B2C configuration docs Co-authored-by: meaghanlewis <10103121+meaghanlewis@users.noreply.github.com> * Clarify Tenant ID retrieval process in documentation Updated instructions for obtaining Tenant ID in Azure AD B2C. * Apply suggestions from code review Co-authored-by: Wade Pickett <wpickett@microsoft.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: meaghanlewis <10103121+meaghanlewis@users.noreply.github.com> Co-authored-by: Meaghan Osagie (Lewis) <mosagie@microsoft.com> Co-authored-by: Wade Pickett <wpickett@microsoft.com>
1 parent 3c38262 commit 27fad1e

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

aspnetcore/security/authentication/azure-ad-b2c.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: guardrex
44
description: Discover how to set up Azure Active Directory B2C authentication with ASP.NET Core.
55
ms.author: wpickett
66
ms.custom: "devx-track-csharp, mvc"
7-
ms.date: 01/22/2026
7+
ms.date: 02/27/2026
88
uid: security/authentication/azure-ad-b2c
99
---
1010
# Cloud authentication with Azure Active Directory B2C in ASP.NET Core
@@ -16,7 +16,7 @@ By [Damien Bod](https://github.com/damienbod)
1616
[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.
1717

1818
> [!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).
2020
2121
> [!TIP]
2222
> [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
6868
* For **Domain**, use the domain of your Azure AD B2C tenant.
6969
* For **ClientId**, use the **Application (client) ID** from the app registration you created in your tenant.
7070
* 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**.
7172
* For **SignUpSignInPolicyId**, use the user flow policy defined in the Azure B2C tenant
7273
* Use either the **ClientSecret** or the **ClientCertificates** configuration. ClientCertificates are recommended.
7374
* 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
102103
103104
In the preceding code:
104105
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.
106107
* `AddAuthorization` initializes ASP.NET Core authorization.
107108
* The `AddRazorPages` call configures the app so anonymous browsers can view the Index page. All other requests require authentication.
108109
* `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
116117
## Run the app
117118
118119
> [!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**.
120121
1. Run the app.
121122
122123
```dotnetcli

0 commit comments

Comments
 (0)