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**.
Copy file name to clipboardExpand all lines: aspnetcore/security/authentication/index.md
+7-12Lines changed: 7 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,11 @@
1
1
---
2
2
title: Overview of ASP.NET Core Authentication
3
+
ai-usage: ai-assisted
3
4
author: mjrousos
4
5
description: Learn about authentication in ASP.NET Core.
5
6
ms.author: tdykstra
6
7
ms.custom: mvc
7
-
ms.date: 10/18/2022
8
+
ms.date: 02/26/2026
8
9
uid: security/authentication/index
9
10
---
10
11
# Overview of ASP.NET Core authentication
@@ -137,7 +138,7 @@ See the following links for differences between challenge and forbid:
137
138
138
139
## Authentication providers per tenant
139
140
140
-
ASP.NET Core doesn't have a built-in solution for multi-tenant authentication. While it's possible for customers to write one using the built-in features, we recommend customers consider [Orchard Core](https://www.orchardcore.net/), [ABP Framework](https://abp.io/), or [Finbuckle.MultiTenant](https://www.finbuckle.com/multitenant)for multi-tenant authentication.
141
+
ASP.NET Core doesn't have a built-in solution for multi-tenant authentication. While it's possible for customers to write one using the built-in features, we recommend customers consider [Orchard Core](https://www.orchardcore.net/), [ABP Framework](https://abp.io/), or [Finbuckle.MultiTenant](https://www.finbuckle.com/multitenant) for multi-tenant authentication.
@@ -286,7 +286,7 @@ See the following links for differences between challenge and forbid:
286
286
287
287
## Authentication providers per tenant
288
288
289
-
ASP.NET Core doesn't have a built-in solution for multi-tenant authentication. While it's possible for customers to write one using the built-in features, we recommend customers to consider [Orchard Core](https://www.orchardcore.net/) or [ABP Framework](https://abp.io/) for multi-tenant authentication.
289
+
ASP.NET Core doesn't have a built-in solution for multi-tenant authentication. While it's possible for customers to write one using the built-in features, we recommend customers consider [Orchard Core](https://www.orchardcore.net/) or [ABP Framework](https://abp.io/) for multi-tenant authentication.
290
290
291
291
Orchard Core is:
292
292
@@ -429,16 +429,11 @@ See the following links for differences between challenge and forbid:
429
429
430
430
## Authentication providers per tenant
431
431
432
-
ASP.NET Core framework doesn't have a built-in solution for multi-tenant authentication.
433
-
While it's possible for customers to write an app with multi-tenant authentication, we recommend using one of the following asp.net core application frameworks that support multi-tenant authentication:
434
-
435
-
### Orchard Core
432
+
ASP.NET Core framework doesn't have a built-in solution for multi-tenant authentication. While it's possible for customers to write an app with multi-tenant authentication, we recommend using one of the following ASP.NET Core application frameworks that support multi-tenant authentication.
436
433
437
-
[Orchard Core](https://orchardcore.net/). See the [Orchard Core](https://github.com/OrchardCMS/OrchardCore) source for an example of authentication providers per tenant.
434
+
[Orchard Core](https://www.orchardcore.net/) is an open-source, modular, and multi-tenant app framework built with ASP.NET Core that also provides a content management system (CMS). See the [Orchard Core](https://github.com/OrchardCMS/OrchardCore) source for an example of authentication providers per tenant.
438
435
439
-
### ABP Framework
440
-
441
-
[ABP Framework](https://abp.io/) supports various architectural patterns including modularity, microservices, domain driven design, and multi-tenancy. See [ABP Framework source on GitHub](https://github.com/abpframework/abp).
436
+
[ABP Framework](https://abp.io/) supports various architectural patterns including modularity, microservices, domain-driven design, and multi-tenancy. See [ABP Framework source on GitHub](https://github.com/abpframework/abp).
0 commit comments