web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / OlisterR's NAV/BC blog / How to setup Single Sign-On...

How to setup Single Sign-On(SSO) for Microsoft Dynamics Business Central(NAVISION ERP)

Olister Rumao Profile Picture Olister Rumao 3,967

Introduction:

In my previous blog on How to Setup NavUserPassword with SSL for Microsoft Dynamics Business Central, I have performed all the steps in such a way that it would perfectly fit with this blog to give you Single Sign-On(SSO) based access to Microsoft Dynamics 365 Business Central.

Pre-requisites:


  • How to setup NAVUserPassword Authentication
  • Understand how AzureAD Authentication works
  • Microsoft Dynamics 365 Business Central On-Premise

Books & References:

https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/authenticating-users-with-azure-active-directory

Demonstration:

1. Preparation for SSO:
Perform all the steps for NAVUserPassword based authentication.
Refer here How to Setup NavUserPassword with SSL for Microsoft Dynamics Business Central

2. Connect your device to AzureAD:
Install Azure AD Module

Install Azure AD Module by running the command highlighted
After installation of Azure AD Module, in order to connect to Azure AD you will need to download the Azure Connect PowerShell.
Connect-AzureAD -Confirm
Login to  Azure using Office 365. By default with Office 365, your Azure AD TenantID is created.
Your Azure AD and VM are connected and you will get your AzureAD TenantID.
Azure AD Tenant ID after connecting
3. Register Business Central App in your AzureAD Tenant:
Goto App Registration > put your App Name,
Configure your Redirect URI: <HOST>/WebServerInstanceName/SignIn
Business Central App Registration with Redirect URI
Go to Application ID URI and configure the Application ID by clicking on it
Copy your Application ID URI.
App Registration App ID URI 
Setup the following parameters. These parameters will be used to Setup Business Central Administration.

  • Application URI : <Your App ID URI from App Registration>
  • Redirect URI: <HOST>/WebServerInstanceName/SignIn
  • Azure AD Federation Metadata URL: https://login.microsoftonline.com/<Azure AD TENANT ID>/FederationMetadata/2007-06/FederationMetadata.xml 
  • WS-Federation Login Endpoint: https://login.microsoftonline.com/<AAD TENANT ID>/wsfed?wa=wsignin1.0%26wtrealm=<Application ID URI>%26wreply=<Redirect URL>


SSO Parameters

4. Modify the parameters in Business Central Administration:
Under the AzureAD section of Business Central Administration, copy the
Application ID URI, Redirect URI, WS Federation Login Endpoint, AzureAD Federation Metadata URL.In Business Central Administration, change the Credentials Type to AccessControlService
Business Central Administration AzureAD parameters and Credential Type change

Goto C:\inetpub\wwwroot\WebServerInstanceName\navusersettings.json
Modify the CredentialType to AccessControlService
Change CredentialType to AccessControlService

5. Add the Office 365 to Users in Business Central:
Add Office365 Email to Users in Business Central
Restart Business Central Server Instance through Business Central Administration and Web Server Instance through IIS.

Output:
After going to the URL for Business Central WebClient, you will be asked for your Office 365 Login.
After Logging into Business Central using Office 365 Credentials

Conclusion:

Thus, this blog explained, how to connect AzureAD to VM, how to register your App(Business Central) in AzureAD and then use the parameters in Business Central for Login Setup and redirections. Overall, the process is complicated and confusing, I have tried my best to put it as cleanly as possible.
This concludes my Authentication Setup blog for Business Central.
Hope this helps! 

Comments

*This post is locked for comments