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-directoryDemonstration:
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 |
Connect-AzureAD -Confirm |
Your Azure AD and VM are connected and you will get your AzureAD TenantID.
Azure AD Tenant ID after connecting |
Goto App Registration > put your App Name,
Configure your Redirect URI: <HOST>/WebServerInstanceName/SignIn
Business Central App Registration with Redirect URI |
Copy your Application ID URI.
App Registration App ID URI |
- 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 |
6. For Windows Client Setup:
Change the ClientUserSettings.config file under C:\Users\<USER>\AppData\Roaming\Microsoft\Microsoft Dynamics NAV\140
Change Credential Type to AccessControlService and ACSUri to WS-Federation Login Endpoint.
ClientUserSettings.config |
Restart Business Central Server Instance through Business Central Administration and Web Server Instance through IIS.
Output:
For WebClient
After going to the URL for Business Central WebClient, you will be asked for your Office 365 Login.
Logging into Business Central WebClient |
After Logging into Business Central using Office 365 Credentials |
Login into Windows Client using Office 365 credentials |
Windows Client Logged In |
This concludes my Authentication Setup blog for Business Central.
Hope this helps!
Comments
Post a Comment
Let me know your comments below. I'll try my best to answer your comment