Microsoft Entra ID Example
This is a quick guide on setting up Backoffice authentication with Microsoft Entra ID.
Prerequisites
In this example, you will need the following NuGet packages
Setting up Ucommerce Backoffice
Setting up Ucommerce backoffice with Microsoft Entra ID requires you to set up an external authentication scheme when calling .AddBackOffice()
To set up the authentication, use a helper method from the above packages to add all the required services to the AuthenticationBuilder. We highly recommend looking into some of these methods, as they do much of the groundwork to set up OpenID.
Remember to create your external claims mapper to map the claims from Azure to Ucommerce.
Create your Azure application
Follow this guide from Microsoft to set up your Azure App and appsettings.json
. After following the guide, appsettings.json
should look something like this
Notice that the sources in ClientCertificates
may change between environments.
See the Using Certificates documentation for details.
Related Articles
Last updated