Dynamics 365 Single Sign-On SSO
Dynamics 365 SSO integration by miniOrange provides secure access and full control over multiple Web and SaaS applications to enterprise users and clients. Dynamics 365 SSO let users to Single Sign-On into Dynamics 365 account with one set of login credentials, eliminating user-managed passwords and the risk of phishing. Dynamics 365 Single Sign-On set up leverages the existing on-premise Active Directory infrastructure and provides seamless integration without the need to manage multiple on-premise and cloud identities.
miniOrange and Dynamics 365 Single Sign-On (SSO) integration supports the following features:
- SP Initiated Single Sign-On (SSO)
- IdP Initiated Single Sign-On (SSO)
Connect with External Source of Users
miniOrange provides user authentication from various external sources, which can be Directories (like ADFS, Microsoft Active Directory, OpenLDAP, AWS etc), Identity Providers (like Microsoft Entra ID, Okta, AWS), and many more. You can configure your existing directory/user store or add users in miniOrange.
Prerequisites
1. Sync On-Premise Active Directory with Microsoft Entra ID
NOTE: If you want to use your On-Premise Active Directory as a user store to Single Sign-On into Dynamics 365 then follow the below steps to sync your AD and Microsoft Entra ID.
- Download the Microsoft Entra ID Connect
- Run the Microsoft Entra ID installer on your domain machine and follow the setup.
2. Verify your UPN Domain in Azure Portal
- In the Azure portal navigate to Microsoft Entra ID >> Custom domain names and click on Add custom domain.
- Enter the full domain name in the right pane that pops up and click on Add domain.
- A new window will open up with TXT/MX records for the domain. You will have to add the resented entry in your domain name registrar.
- Click on verify once you have added the entry
Follow the step-by-step guide given below for Dynamics 365 Single Sign-On (SSO)
1. Setup a Custom Branded URL in miniOrange Admin Console
Single Sign-On into Dynamics 365 requires a custom branded URL to be set. Access to miniOrange and connected resources will need to be through the custom branded URL in the format: https://<custom_domain>.xecurify.com/moas
- Login to miniOrange Admin Console.
- Click on Customization in the left menu of the dashboard.
- In Basic Settings, set the Organization Name as the custom_domain name.
- Click Save. Once that is set, the branded login URL would be of the format
https://<custom_domain>.xecurify.com/moas/login
2. Configure Dynamics 365 in miniOrange
- Login into miniOrange Admin Console.
- Go to Apps and click on Add Application button.
- In Choose Application Type click on Create App button in SAML/WS-FED application type.
- In the next step, search for Office 365. Click on Office 365 app.
- Make sure the SP Entity ID or Issuer is:
urn:federation:MicrosoftOnline
- Make sure the ACS URL is:
https://login.microsoftonline.com/login.srf
- Click on Next.
- Configure Name ID based on the User Store you are using:
- Using Active Directory / miniOrange brokering service: Select External IDP Attribute from the dropdown and add objectguid in the text-box that appears.
- Using miniOrange as a User Store: Select Custom Profile Attribute and select a Custom Attribute from the drop-down.
- Set the login policy. You can choose to enable 2FA for login or have users login using a standard username-password.
- Click on Save to configure Office 365.
3. Configure Microsoft Online Services
- Click on Select dropdown and choose Metadata.
- Click on the Download Federate Domain Script button under "INFORMATION REQUIRED TO AUTHENTICATE VIA EXTERNAL IDPS"
- Enter the domain name that you want to federate and click on Download.
Note: You cannot federate your default "onmicrosoft.com" domain. To federate your Dynamics 365 tenant, you must add a custom domain to Dynamics 365.
- After downloading the script, Open PowerShell run the federate_domain script using:
cd ./Downloads
powershell -ExecutionPolicy ByPass -File federate_domain.ps1
- Your domain is now federated. Use the commands below to check your federation settings:
Connect-MsolService
Get-MsolDomainFederationService
4. Test SSO Configuration
1. Using SP initiated login :-
- Go to Dynamic 365 - Dynamics 365 Login and click on sign-in
- You will be redirected to Microsoft Online portal. Here you have to enter the UPN of the user.(It should contain the domain that is federated with miniOrange)
- Now you will be redirected to miniOrange IdP Sign On Page.
- Enter your login credential and click on Login. You will be automatically logged in to your Dynamic 365 account.
2. Using IdP initiated login :-
- Login to your miniOrange Self Service Console as an End User and click on the Dynamic 365 icon on your Dashboard.
- Once you click on Dynamic 365 you don't need to enter credentials again you will be redirected to Dynamic 365 account.
External References