Step 1: Prepare your Active Directory Domain
- Office 365 SSO requires an Internet-resolvable domain name to use as the suffix in each user’s username. Don’t worry, though, if your Active Directory domain name doesn’t meet this requirement. Most of them don’t. You can make things work by giving users an alternate User Principal Name (UPN) that matches any public domain name you own.
- Let’s assume your public domain name is mydomain.com, but your inside-the-firewall Active Directory domain is mydomain.local. You can’t resolve mydomain.local via Internet servers, therefore you won’t be able to with Office 365 DNS servers. That said, you can use federation to set each user’s UPN to a publicly resolvable domain name and let them log in as firstname.lastname@example.org.
- Launch Active Directory Domains and Trusts and view the Properties of its top-level node. In the box titled Alternative UPN suffixes, enter your publicly resolvable domain name and click Add. Then launch Active Directory Users and Computers and view the Properties of a user account. Under its Account tab, you can now set the User login name to that publicly resolvable domain name. Do this for each Office 365-enabled user. They’ll be using this as their Office 365 username in a minute.
Step 2: Setup a Custom Branded URL in miniOrange Admin Console
Single Sign-On into Office 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##.miniorange.com/moas.
- Login to miniOrange Admin Console.
- Navigate to Customization->Branding Customization
- Under Basic Settings, set the Organization Name as the custom domain name. Once that is set, the branded login URL would be of the format https://##CUSTOM DOMAIN##.miniorange.com/moas.
- Click on Save.
Step 3: Choose Your User Directory
3.1: Setup AD as User Directory
- Log in to miniOrange dashboard from the Admin Console.
- From the Side Menu, Click on User Stores >> Add User Store
- STORE LDAP CONFIGURATION IN MINIORANGE: Choose this option if you want to keep your configuration in miniOrange. If active directory is behind a firewall, you will need to open the firewall to allow incoming requests to your AD.
- STORE LDAP CONFIGURATION ON PREMISE: Choose this option if you want to keep your configuration in your premise and only allow access to AD inside premises. You will have to download and install miniOrange gateway in your premise.
- Enter LDAP Display Name and LDAP Identifier of your choice. Select Directory Type as Active Directory.
- Enter the LDAP Server URL or IP Address against LDAP Server URL field.
- Go to AD FS-> Domain-> respective Users -> Properties-> Attribute Editor. Now copy the value of distinguishedName and paste it against Bind Account DN.
- Enter the valid password for the user from above step.
- Search Base is the location in the directory where the search for a user begins.
- If you want to add extra conditions on user search you can add it in Search Filter. Select a suitable Search Filter from the Drop-Down. To use custom Search Filter select "Custom Search Filter" option and provide the search filter in the input field that shows up.
- You can also configure following options while setting up AD.
Here's the list of the attributes and what it does when we enable it. You can enable/disable accordingly.
||All user authentications will be done with LDAP credentials if you Activate it
|Sync users in miniOrange
||Users will be created in miniOrange after authentication with LDAP
||If LDAP credentials fail then user will be authenticated through miniOrange
|Allow users to change password
||This allows your users to change their password. It updates the new credentials in your LDAP server
|Enable administrator login
||On enabling this, your miniOrange Administrator login authenticates using your LDAP server
|Show IdP to users
||If you enable this option, this IdP will be visible to users
|Send Configured Attributes
||If you enable this option, then only the attributes configured below will be sent in attributes at the time of login
- Click on Save. After this, it will show you the list of User stores. Click on Test Configuration to check whether you have enter valid details. For that, it will ask for username and password.
- On Successful connection with LDAP Server, a success message is shown.
- Click on Test Attribute Mapping.
- Enter a valid Username. Then, click on Test. Mapped Attributes corresponding to the user are fetched.
- After successful Attribute Mapping Configuration, go back to the ldap configuration and enable Activate LDAP in order to authenticate users from AD/LDAP.
3.2: Setup miniOrange as a User Store
- Log in to miniOrange dashboard from the Admin Console.
- There are 3 ways to setup miniOrange as an Identity Source
Step 4: Add Your UPN Domain to Office 365
- If the publicly resolvable domain name you choose isn’t already linked to Office 365, do so via the Microsoft Online Services Portal. Click Domains in the Admin console and then select Add a domain. The wizard will prompt you for the domain name, and then give you one of two options for authenticating ownership. You’ll need to add either a TXT or MX record to the publicly accessible DNS server hosting the domain.
Step 5: Follow the Step-by-Step Guide given below for Office 365 Single Sign On (SSO)
Step 5.1Configure Single Sign On (SSO) Settings
- Login to miniOrange Admin Console.
- Go to Apps >> Manage Apps . Click Configure Apps button.
- Click on SAML tab. Select Office365 and click Add App button.
- Make sure the SP Entity ID or Issuer is: urn:federation:MicrosoftOnline.
- Make sure the ACS URL is: https://login.microsoftonline.com/login.srf.
- Add an attribute with attribute name as IDPEmail and select attribute value as E-mail Address.
- Set the authentication policy. You can choose to enable 2FA for login or have users login using a standard username-password.
- Click on Save to configure Office365.
- Click on Metadata link to see the Identity Provider information required to configure Office 365. Note down the following information.
- IdP Entity ID/Issuer
- Logout URL
- Login URL
- X.509 Certificate
Step 5.2: Configure Microsoft Online Services
- Open Powershell in Administrator Mode. The Microsoft Online Services module needs to be installed for the below commands to run.
- Install-Module -Name AzureAD
- If prompted about installing a module from an untrusted repository, type Y and press ENTER.
- Install the 64-bit version of the Microsoft Online Services Sign-in Assistant. Download it from here.
- Run the Following command in Powershell to install MSOnline Module : Install-Module MSOnline
- If prompted to install the NuGet provider, type Y and press ENTER.
- If prompted to install the module from PSGallery, type Y and press ENTER.
- Execute the following Powershell commands:
- $cred = Get-Credential. Enter Office 365 Administrator credentials.
- Connect-MsolService -Credential $cred.
- Replace the following information with the one noted in above step:
- Replace ##DOMAIN NAME## by your Active Directory Domain Name. Ensure that the domain is not the default domain name as the default one cannot be set as the federated domain
- Replace ##IDP ENTITY ID## with the IdP Entity ID/Issuer Noted above.
- Replace ##LOGOUT URL## with the Logout URL Noted above.
- Replace ##CERTIFCATE## with the X.509 Certificate Noted above.
- Set-MsolDomainAuthentication -Authentication Federated -DomainName ##DOMAIN NAME## -IssuerUri ##IDP ENTITY ID## -LogOffUri "##LOGOUT URL##" -PassiveLogOnUri "##LOGIN URL##" -SigningCertificate "##CERTIFICATE## -PreferredAuthenticationProtocol SAMLP
- You cannot federate your default "onmicrosoft.com" domain. To federate your Office 365 tenant, you must add a custom domain to Office 365.
Step 6: Now sign in to your Office 365 account with miniOrange IdP by either of the two steps:
- Login to your Office 365 account
- Go to Office 365 Login
- Enter only the Email. Now you will be redirected to miniOrange IdP Sign On Page.
- Enter your miniOrange login credential and click on Login. You will be automatically logged in to your Office 365 account.
2. Using IdP initiated login :-
- Login to your miniOrange Self Service Console as an End User and click on the Office 365 icon on your Dashboard.
Step 7: Adaptive Authentication with Office 365
7.1: Restricting access to Office 365 with IP Blocking
7.2: Adaptive Authentication with Limiting number of devices.
Using Adaptive Authentication you can also restrict the number of devices the end user can access the Services on. You can allow end users to access services on a fixed no. of devices. The end users wii be able to access services provided by us on this fixed no. of devices.
You can cofigure Adaptive Authentication with Device Restriction in follwing way
- Login to Self Service Console >> Adaptive Authentication.
- Add a Policy Name for your Adaptive Authentication Policy.
- Select your Action for Behavior Change and Challenge Type for user.
- Scroll down to Device Configuration section and enable Allow User to Register Device option to allow users to register their devices.
- Enter the Number of Devices which are allowed to register in field next to Number of Device Registrations Allowed
- Choose Action if number of devices exceeded (This will override your setting for Action for Behaviour Change.)
Enable option Send email alerts to Users if number of Device registrations exceeded allowed count if you want to alert the user about no of devices exceeding the limit. Save the configuration.
- Challenge: The user needs to verify himself using any of the three methods mentioned in table in step 7.1
- Deny : Deny users access to the system
Add Adaptive Authentication policy to Office 365
Login to Self Service Console >> Policies.
Click on Edit option for predefined SAML app policy.
Enable Adaptive Authentication on Policy page and select Device-Id as the Method.
From Select Login Policy dropdown select the policy we created in last step and click on save.
How to add a trusted Device
- When End-user log in to the self service console after the policy for device restriction is on, he is provided the option to add the current device as a trusted device.
More Secure authentication with Two-Factor Authentication
The most practical way to strengthen authentication is to require a second factor after the username/password stage. Since a password is something that a user knows, ensuring that the user also has something or using biometrics thwarts attackers that steal or gain access to passwords.
Traditional two-factor authentication solutions use hardware tokens (or "fobs") that users carry on their keychains. These tokens generate one-time passwords for the second stage of the login process. However, hardware tokens can cost up to $40 each. It takes time and effort to distribute them, tracks who has which one, and replace them when they break. They're easy to lose, hard to use, and users consistently report high levels of frustration with token-based systems.
Your choice of the second factor
miniOrange authentication service has 15+ authentication methods.
You can choose from any of the above authentication methods to augment your password based authentication. miniOrange authentication service works with all phone types, from landlines to smart-phone platforms. In the simplest case, users just answer a phone call and press a button to authenticate. miniOrange authentication service works internationally and has customers authenticating from many countries around the world.
For further details refer folowing Documents :