topic hubAdministration & Setupofficial - Microsoftunreviewed - model text not yet checked

Authenticating with Microsoft Entra ID

Microsoft Entra ID authentication for on-premises Business Central users. It covers OpenID Connect setup, the older WS-Federation setup for version 21 and earlier, and the move between the two. Use it for questions on single sign-on, certificates, app registration and user association.

Path: Business Central on-premises > Administration > Configuring user authentication > Authenticating with Microsoft Entra ID · tier official · system administration · narrative unreviewed (model text not yet checked)

Overview

This section explains how to let Business Central on-premises users sign in with Microsoft Entra ID. Doing so gives cloud-based identity and access management and single sign-on with Microsoft 365 services. The summaries name Excel add-in authentication and Power BI integration as examples.

There are three pages. The first is an introduction. It lists the setup tasks, explains the migration from WS-Federation to OpenID Connect, and gives version-specific details. The second is the configuration guide for OpenID Connect. The third covers WS-Federation, which applies to version 21 (2022 release wave 2) and earlier.

Start with the introduction to see which protocol fits your version. Then follow the OpenID Connect page for version 22 (2023 release wave 1) and later. Use the WS-Federation page only if you run version 21 or earlier.

Key points

  • OpenID Connect replaced WS-Federation as the Microsoft Entra protocol in version 22 (2023 release wave 1).
  • The WS-Federation article applies to version 21 (2022 release wave 2) and earlier.
  • The OpenID Connect setup covers security certificates, application registration, user association, and server and web server configuration.
  • OpenID Connect setup supports single-tenant and multitenant deployments.
  • The OpenID Connect page also covers OAuth web services authentication and web service access keys.
  • Both protocols use the AccessControlService credential type.
  • The WS-Federation page covers token lifetime configuration and host name tenant resolution.
  • The introduction page covers migrating from WS-Federation to OpenID Connect and includes version-specific notes.

Learn pages

  • Authenticating Business Central Users with Microsoft Entra ID: Get an overview about using Microsoft Entra authentication in Business Central.
    • Status: OpenID Connect support was introduced in 2022 release wave 1 (version 20), generally available
    • Status: WS-Federation is deprecated and removed in version 22 and later versions
    • Microsoft Entra authentication is required for Excel add-in, Power BI reports, Power Automate, and service-to-service authentication
    • OpenID Connect is built on OAuth 2.0 and is more modern than WS-Federation protocol
    • Step: Enable ID tokens on the registered application in Microsoft Entra ID via Azure portal
    • Step: Set ValidAudiences parameter to the application ID on the Business Central server instance
    • Step: Configure AadApplicationId and AadAuthorityUri parameters on the web server instance
  • Configure Microsoft Entra authentication with OpenID Connect: Learn how to authentication Business Central users by using Microsoft Entra ID with OpenID Connect.
    • Prerequisite: Security certificates must be obtained and installed on Business Central server and client computers for HTTPS connections.
    • Step: Create a Microsoft Entra tenant by signing up for Microsoft 365 or Azure subscription and creating a directory.
    • Step: Register Business Central as an application in the Microsoft Entra tenant via the Microsoft Entra admin center.
    • Step: Set each Business Central user’s authentication email to match their Microsoft Entra user principal name.
    • Step: Configure server instance with ClientServicesCredentialType set to AccessControlService and OpenID metadata location configured.
    • Step: Configure web server instance with AadApplicationId, AadAuthorityUri, and ClientServicesCredentialType set to AccessControlService.
    • Access token lifetime should be limited to 10 minutes for security using Microsoft Entra PowerShell Module.
    • Users accessing Business Central through Excel add-in must have ValidAudiences parameter set to https://api.businesscentral.dynamics.com.
  • User Authentication with Microsoft Entra ID for Single Sign-on: Associate an existing Microsoft account with user account to achieve single sign-on between the Web client and Microsoft 365.
    • Prerequisite: Security certificates must be obtained and installed on the server and client computers for the WAN connection
    • Step: Create a Microsoft Entra tenant by signing up for a Microsoft 365 plan or Azure subscription
    • Step: Register the Business Central solution as an application in the Microsoft Entra tenant
    • Step: Associate Microsoft Entra ID users with Business Central user accounts by setting the authentication email
    • Step: Configure the Business Central server instance with WS-Federation login endpoint and federation metadata location
    • Step: Configure the web server and Windows client to use AccessControlService credential type
    • Access token lifetime should be limited to 10 minutes for security reasons

Key facts from Microsoft Learn (CC BY 4.0), in our own words (D106); open the page for the full text.

Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.

What Learn documents here 3 Learn pages