Azure AD via SAML
SAML is an XML-based standard for exchanging authentication and authorization data between parties, in particular, between an identity provider and a service provider. Azure AD can act as a SAML Identity Provider, allowing users to authenticate and access applications like Mindful through a single sign-on (SSO) process.
This section covers the Azure AD SSO integration with SAML. Topics covered:
- Setting up SAML in Azure AD
- Adding group claims
- Adding application roles to SAML
- Assigning users to SAML
- Adding an application roles claim
- Configuring your Mindful Organization
- Adding Role Mappings
Set up SAML in Azure AD
- Navigate to Azure Active Directory > Enterprise Applications, then click New Application.
- Select Create your own application.
- Name the application and make sure Integrate any other application you don't find in the gallery is selected.
- Once created, you will be taken to the application Overview page.
Click Set up Single Sign-On and choose SAML.
The first box will have two required entries. Select the Edit button for this first box.
The Identifier(Entity ID) will be the Cognito user pool URN. Contact the Mindful Support team to obtain the correct value.
The Reply URL will be the callback URL to Mindful. Contact the Mindful Support team to obtain this value, as well.
Add Group Claims
- In the second box in the Set up Single Sign-On with SAML section, click the Edit button.
- Click Add a group claim.
- Select which groups are to be included in the claim. This will depend on the client's requirements, but All Groups is a good selection for testing. The Source attribute should be Group ID.
Add Application Roles to SAML
- From your Azure active directory, select App registrations.
Navigate to your application.
Click App roles, then click Create app role. Make sure Allowed member types is Users/Groups or Both.
Assign Users to SAML
- Navigate to Enterprise Applications > Your application.
- Click Assign users and groups, then click Add user/group.
- Select the user or users you wish to assign the role.
- Select the application role you wish to assign to the user or users (Can be the default user role if using groups).
Click Assign.
This will add another row to the Users and groups list. You should see the new row with your assigned role.
Add the Application Roles Claim
- In the second box in the Set up Single Sign-On with SAML section, click Edit.
- Click Add new claim.
- Name the new claim roles.
- The Source should be Attribute.
- The Source attribute field should be user.assignedroles
Configure your Mindful Organization for SAML using Azure AD
Now it's time to link the Mindful Organization to your Azure AD SAML account. This step can only be performed by Mindful staff.
Add Role Mappings - Azure AD Group to Mindful
Now we need to map our Azure AD Group to Mindful roles.
- Click Add Role Map.
- If you are using Azure AD Groups: For Name, enter the Group ID of the group you created in Azure AD. The Group ID can be found by going to Azure > Groups. Select the group and look for an Object ID field. This is the UUID (aka Group ID) for the group. If you are using Azure Application Roles, enter the name of the role you created and assigned to your users.
- For Roles, enter the Role or Roles that the user will be assigned when they log in with a matching role.
- If more roles are necessary to map, add those as well. Make sure to click Save to keep your changes.