Tutorial: Azure Active Directory integration with Pega Systems
In this tutorial, you'll learn how to integrate Pega Systems with Azure Active Directory (Azure AD).
This integration provides these benefits:
- You can use Azure AD to control who has access to Pega Systems.
- You can enable your users to be automatically signed-in to Pega Systems (single sign-on) with their Azure AD accounts.
- You can manage your accounts in one central location: the Azure portal.
To learn more about SaaS app integration with Azure AD, see Single sign-on to applications in Azure Active Directory.
If you don't have an Azure subscription, create a free account before you start.
To configure Azure AD integration with Pega Systems, you need to have:
- An Azure AD subscription. If you don't have an Azure AD environment, you can sign up for a one-month trial.
- A Pega Systems subscription that has single sign-on enabled.
In this tutorial, you'll configure and test Azure AD single sign-on in a test environment.
- Pega Systems supports SP-initiated and IdP-initiated SSO.
Add Pega Systems from the gallery
To set up the integration of Pega Systems into Azure AD, you need to add Pega Systems from the gallery to your list of managed SaaS apps.
In the Azure portal, in the left pane, select Azure Active Directory:
Go to Enterprise applications > All applications.
To add an application, select New application at the top of the window:
In the search box, enter Pega Systems. Select Pega Systems in the search results, and then select Add.
Configure and test Azure AD single sign-on
In this section, you'll configure and test Azure AD single sign-on with Pega Systems by using a test user named Britta Simon. To enable single sign-on, you need to establish a relationship between an Azure AD user and the corresponding user in Pega Systems.
To configure and test Azure AD single sign-on with Pega Systems, you need to complete these steps:
- Configure Azure AD single sign-on to enable the feature for your users.
- Configure Pega Systems single sign-on on the application side.
- Create an Azure AD test user to test Azure AD single sign-on.
- Assign the Azure AD test user to enable Azure AD single sign-on for the user.
- Create a Pega Systems test user that's linked to the Azure AD representation of the user.
- Test single sign-on to verify that the configuration works.
Configure Azure AD single sign-on
In this section, you'll enable Azure AD single sign-on in the Azure portal.
To configure Azure AD single sign-on with Pega Systems, take these steps:
In the Azure portal, on the Pega Systems application integration page, select Single sign-on:
In the Select a single sign-on method dialog box, select SAML/WS-Fed mode to enable single sign-on:
On the Set up Single Sign-On with SAML page, select the Edit icon to open the Basic SAML Configuration dialog box:
In the Basic SAML Configuration dialog box, if you want to configure the application in IdP-initiated mode, complete the following steps.
In the Identifier box, enter a URL in this pattern:
In the Reply URL box, enter a URL in this pattern:
If you want to configure the application in SP-initiated mode, select Set additional URLs and complete the following steps.
In the Sign on URL box, enter the sign on URL value.
In the Relay State box, enter a URL in this pattern:
The values provided here are placeholders. You need to use the actual identifier, reply URL, sign on URL, and relay state URL. You can get the identifier and reply URL values from a Pega application, as explained later in this tutorial. To get the relay state value, contact the Pega Systems support team. You can also refer to the patterns shown in the Basic SAML Configuration section in the Azure portal.
The Pega Systems application needs the SAML assertions to be in a specific format. To get them in the correct format, you need to add custom attribute mappings to your SAML token attributes configuration. The following screenshot shows the default attributes. Select the Edit icon to open the User Attributes dialog box:
In addition to the attributes shown in the previous screenshot, the Pega Systems application requires a few more attributes to be passed back in the SAML response. In the User claims section of the User Attributes dialog box, complete the following steps to add these SAML token attributes:
These values are specific to your organization. Provide the appropriate values.
- Select Add new claim to open the Manage user claims dialog box:
In the Name box, enter the attribute name shown for that row.
Leave the Namespace box empty.
For the Source, select Attribute.
In the Source attribute list, select the attribute value shown for that row.
On the Set up Single Sign-On with SAML page, in the SAML Signing Certificate section, select the Download link next to Federation Metadata XML, per your requirements, and save the certificate on your computer:
In the Set up Pega Systems section, copy the appropriate URLs, based on your requirements.
Azure AD Identifier.
Configure Pega Systems single sign-on
To configure single sign-on on the Pega Systems side, sign in to the Pega Portal with an admin account in another browser window.
Select Create > SysAdmin > Authentication Service:
Complete the following steps on the Create Authentication Service screen.
In the Type list, select SAML 2.0.
In the Name box, enter any name (for example, Azure AD SSO).
In the Short description box, enter a description.
Select Create and open.
In the Identity Provider (IdP) information section, select Import IdP metadata and browse to the metadata file that you downloaded from the Azure portal. Click Submit to load the metadata:
The import will populate the IdP data as shown here:
Complete the following steps in the Service Provider (SP) settings section.
Copy the Entity Identification value and paste it into the Identifier box in the Basic SAML Configuration section in the Azure portal.
Copy the Assertion Consumer Service (ACS) location value and paste it into the Reply URL box in the Basic SAML Configuration section in the Azure portal.
Select Disable request signing.
Create an Azure AD test user
In this section, you'll create a test user named Britta Simon in the Azure portal.
In the Azure portal, select Azure Active Directory in the left pane, select Users, and then select All users:
Select New user at the top of the screen:
In the User dialog box, complete the following steps.
a. In the Name box, enter BrittaSimon.
b. In the User name box, enter brittasimon@<yourcompanydomain>.<extension>. (For example, BrittaSimon@contoso.com.)
c. Select Show password, and then write down the value that's in the Password box.
d. Select Create.
Assign the Azure AD test user
In this section, you'll enable Britta Simon to use Azure single sign-on by granting her access to Pega Systems.
In the Azure portal, select Enterprise applications, select All applications, and then select Pega Systems.
In the list of applications, select Pega Systems.
In the left pane, select Users and groups:
Select Add user, and then select Users and groups in the Add Assignment dialog box.
In the Users and groups dialog box, select Britta Simon in the users list, and then click the Select button at the bottom of the screen.
If you expect a role value in the SAML assertion, in the Select Role dialog box, select the appropriate role for the user from the list. Click the Select button at the bottom of the screen.
In the Add Assignment dialog box, select Assign.
Create a Pega Systems test user
Next, you need to create a user named Britta Simon in Pega Systems. Work with the Pega Systems support team to create users.
Test single sign-on
Now you need to test your Azure AD single sign-on configuration by using the Access Panel.
When you select the Pega Systems tile in the Access Panel, you should be automatically signed in to the Pega Systems instance for which you set up SSO. For more information, see Access and use apps on the My Apps portal.