If you plan on allowing users to log in using a Microsoft Azure Active Directory account, either from your company or from external directories, you must register your application through the Microsoft Azure portal. If you don't have a Microsoft Azure account, you can signup for free.
You can access the Azure management portal from your Microsoft service, or visit https://manage.windowsazure.com and sign in to Azure using the global administrator account used to create the Office 365 organization.
If you have an Office 365 account, you can use the account's Azure AD instance instead of creating a new one. To find your Office 365 account's Azure AD instance:
a. Sign in to Office 365.
b. Navigate to the Office 365 Admin Center.
c. Open the Admin centers menu drawer located in the left menu.
d. Click on Azure AD.
This will bring you to the admin center of the Azure AD instance backing your Office 365 account.
Follow the 6 steps below to connect your Perimeter 81 Account to Azure Active Directory (screenshots below) -
- Create a new application
- Configure the permissions
- Allowing access from external organizations (optional)
- Create the key
- Configure Reply URLs
- Configure Perimeter 81 IDP connection
1. Create a new application
Login to Microsoft Azure and choose Azure Active Directory from the sidebar.
Then under MANAGE, select App registrations.
Then click on the + ADD button to add a new application.
Enter the name "Perimeter 81" for the application, select Web app/API as the Application Type, and for Sign-on URL enter your application URL with your workspace name: https://workspace.perimeter81.com
2. Configure the permissions
Once the application has been created, you will have to configure the permissions. Click on the name of the application Perimeter 81 to open the Settings section.
Click Required permissions.
Then click on Windows Azure Active Directory to change the access levels.
The next step is to modify permissions so your app can read the directory. Under DELEGATED PERMISSIONS check next to Sign in and read user profile and Read directory data.
Support user groups
If you want to enable user group support you will also need to enable the following permissions: Application Permissions: Read directory data,
Delegated Permissions: Access the directory as the signed-in user.
Click the SAVE button at the top to save these changes.
3. Allowing access from external organizations (optional)
If you want to allow users from external organizations (such as other Azure directories) to log in, you will need to enable the Multi-Tenant flag for this application. In the Settings section, click Properties. Locate the Multi-tenanted toggle at the bottom and select Yes. Finally click the SAVE button at the top to save these changes.
4. Create the key
Next you will need to create a key which will be used as the Client Secret in the Perimeter 81 idp connection. Click on Keys from the Settings menu.
Enter a name for the key and choose the desired duration.
If you choose an expiring key, make sure to record the expiration date in your calendar, as you will need to renew the key (get a new one) before that day in order to ensure users don't experience a service interruption.
Click on Save and the key will be displayed. Make sure to copy the value of this key before leaving this screen, otherwise you may need to create a new key. This value is used as the Client Secret in the next step.
5. Configure Reply URLs
Next you need to ensure that your Auth0 callback URL is listed in allowed reply URLs for the created application. Navigate to Azure Active Directory -> Apps registrations and select Perimeter 8 app. Then click Settings -> Reply URLs and add:
6. Configure Perimeter 81 IDP connection
On Security Settings-> Security click + Add Provider
Choose Microsoft Azure AD
Fill Microsoft Azure AD Domain, Domain Aliases (optional), Client ID and Client Secret
a. For the Client ID, this value is stored as the Application ID in Azure AD.
b. For the Client Secret use the value that was shown for the key when you created it in the previous step.
c. Under Domain Set the name of the Microsoft Azure AD Domain and under Domain Aliases put any email domain that corresponds to the connection.
7. Access Error troubleshooting
If your users are getting access error after the configuration ,please check these steps.