Single Sign On allows your staff to have one password for all their applications, and avoid the need to log on separately to different systems. This guide steps through the process of setting up Single Sign On for Leave Dates using Microsoft Azure.
How to Configure Single Sign-On with Microsoft
Follow these steps to create the app registration:
- Sign in to the Azure portal.
- If you have access to multiple tenants, use the Directory + subscription filter
in the top menu to select the tenant in which you want to register an application.
- Search for and select Azure Active Directory.
- Under Manage, select App registrations, then New registration.
- Enter Leave Dates for the application name.
- Specify who can use the application, sometimes referred to as the sign-in audience as Accounts in this organizational directory only (single tenant)
- Don't enter anything for Redirect URI (optional), you'll configure one in the next section.
- Select Register to complete the initial app registration.
- When registration completes, the Azure portal displays the app registration's Overview pane, which includes its Application (client) ID. Also referred to as just client ID, this value uniquely identifies your application in the Microsoft identity platform. Copy this value, it will be used later.
- Under Manage, select Branding
- Upload the attached file as a logo
- Ignore the Home Page URL, this will be filled in later.
- Enter https://www.leavedates.com/our-terms-of-use/ as the Terms of Service
- Enter https://www.leavedates.com/privacy-policy/ as the Privacy Statement
- Copy the Publisher domain, this will be used later.
- Press Save
- Under Manage, select Certificates & secrets
- Select + New client secret
- Add a description (optional) and choose the expiry period. Use Never unless you have a process for renewing these.
- Click Add
- Copy the Secret Value you just created. It will be shown in the table.
- Open a new tab in your browser and log into Leave Dates using your admin account. You will be using the Microsoft tab again later.
- Navigate to the Settings > Integrations page
- Click the Add Provider button within the Single Sign On section
- Provide a Subdomain for the login process (eg. https://companyname.leavedates.com). Choose something memorable and easy to type, such as companyname. It will be used later to automate the login process. You cannot change this later so choose wisely! If you are not asked for this, that is because you have previously entered a subdomain which will be used.
- Press Continue and a new form will appear.
- Select Microsoft as the Provider
- Enter the Base URL as previously copied in stop 14 above (Publisher domain). This is should be something like companyname.onmicrosoft.com
- Paste in the Client ID copied in step 9 - Application (client) ID
- Paste in the Client secret value copied in step 21
- Press Create
- An entry will be added to the table, as shown below.
- Copy the values for LOGIN URL and CALLBACK URL from the table and revert back to the Microsoft browser tab.
- In the Overview page, click on Add a Redirect URI
- Click + Add a platform
-
Select Web and then paste in the CALLBACK URL copied in step 32.
- Under Manage, select Branding
- Paste the LOGIN URL as the Home Page URL
- Click Save
- The single sign on application configuration is now complete.
Further considerations
- Users will need to be created in Leave Dates using the same email address as configured for Azure/Microsoft.
- Users will need to be invited to use Leave Dates by an admin user, and create an account in Leave Dates using the non-SSO approach (which includes creating a password). This gives them the flexibility to use password login as well if they choose. Users can only log in using SSO once an account has been created in Leave Dates.
- Users will need to be assigned to the Leave Dates application within the Microsoft / Azure Portal. Instructions on how to do this are here.
- The Login URL link shown in the table in step 18 above can be used as a direct link for logging into Leave Dates using Single Sign On.
- Alternatively, the user can also log in via Microsoft using by clicking Log In on the Leave Dates website, followed by clicking Sign in with SSO and entering the company subdomain (created in step 25 earlier).
- Logging out from Microsoft / Azure will not log you out from Leave Dates.