Add Microsoft Entra ID authentication (Members)
Learn how to use Microsoft Entra ID (Azure Active Directory) credentials to login to Umbraco as a member.
Last updated
Learn how to use Microsoft Entra ID (Azure Active Directory) credentials to login to Umbraco as a member.
Last updated
This article describes how to configure Microsoft Entra ID (Azure Active Directory/Azure AD) with Umbraco Users and Members.
Before your applications can interact with Entra ID B2C, they must be registered in a tenant that you manage. For more information, see .
You need to install the Microsoft.AspNetCore.Authentication.MicrosoftAccount
NuGet package. There are two approaches to installing the packages:
Use your favorite IDE and open up the NuGet Package Manager to search and install the packages.
Use the command line to install the package.
Create a class called BackofficeAuthenticationExtensions.cs
to configure the external login.
Update ConfigureServices
method in the Startup.cs
file:
Build and run the website. You can now login with your Entra ID credentials.
Create a class called MemberAuthenticationExtensions.cs
to configure the external login.
To enable a member to link their account to an external login provider such as Entra ID in the Umbraco Backoffice, you have to implement a custom named configuration MemberExternalLoginProviderOptions
for Members. Add the following code in the EntraIDB2CMembersExternalLoginProviderOptions.cs
file:
Next, update ConfigureServices
method in the Startup.cs
file:
Build and run the website. Your members can now login with their Entra ID credentials.
Create a Member login functionality, see the article.