Tutorial: Azure AD SSO integration with Pega Systems
In this tutorial, you'll learn how to integrate Pega Systems with Azure Active Directory (Azure AD). When you integrate Pega Systems with Azure AD, you can:
- Control in Azure AD who has access to Pega Systems.
- Enable your users to be automatically signed-in to Pega Systems with their Azure AD accounts.
- Manage your accounts in one central location - the Azure portal.
To get started, you need the following items:
- An Azure AD subscription. If you don't have a subscription, you can get a free account.
- Pega Systems single sign-on (SSO) enabled subscription.
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 configure the integration of Pega Systems into Azure AD, you need to add Pega Systems from the gallery to your list of managed SaaS apps.
- Sign in to the Azure portal using either a work or school account, or a personal Microsoft account.
- On the left navigation pane, select the Azure Active Directory service.
- Navigate to Enterprise Applications and then select All Applications.
- To add new application, select New application.
- In the Add from the gallery section, type Pega Systems in the search box.
- Select Pega Systems from results panel and then add the app. Wait a few seconds while the app is added to your tenant.
Configure and test Azure AD SSO for Pega Systems
Configure and test Azure AD SSO with Pega Systems using a test user called B.Simon. For SSO to work, you need to establish a link relationship between an Azure AD user and the related user in Pega Systems.
To configure and test Azure AD SSO with Pega Systems, perform the following steps:
- Configure Azure AD SSO - to enable your users to use this feature.
- Configure Pega Systems SSO - to configure the single sign-on settings on application side.
- Create Pega Systems test user - to have a counterpart of B.Simon in Pega Systems that is linked to the Azure AD representation of user.
- Test SSO - to verify whether the configuration works.
Configure Azure AD SSO
Follow these steps to enable Azure AD SSO in the Azure portal.
In the Azure portal, on the Pega Systems application integration page, find the Manage section and select single sign-on.
On the Select a single sign-on method page, select SAML.
On the Set up single sign-on with SAML page, click the pencil icon for Basic SAML Configuration to edit the settings.
In the Basic SAML Configuration dialog box, if you want to configure the application in IdP-initiated mode, perform the following steps.
In the Identifier box, type a URL using the following pattern:
In the Reply URL box, type a URL using the following 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.
Create an Azure AD test user
In this section, you'll create a test user in the Azure portal called B.Simon.
- From the left pane in the Azure portal, select Azure Active Directory, select Users, and then select All users.
- Select New user at the top of the screen.
- In the User properties, follow these steps:
- In the Name field, enter
- In the User name field, enter the firstname.lastname@example.org. For example,
- Select the Show password check box, and then write down the value that's displayed in the Password box.
- Click Create.
- In the Name field, enter
Assign the Azure AD test user
In this section, you'll enable B.Simon to use Azure single sign-on by granting access to Pega Systems.
- In the Azure portal, select Enterprise Applications, and then select All applications.
- In the applications list, select Pega Systems.
- In the app's overview page, find the Manage section and select Users and groups.
- Select Add user, then select Users and groups in the Add Assignment dialog.
- In the Users and groups dialog, select B.Simon from the Users list, then click the Select button at the bottom of the screen.
- If you are expecting a role to be assigned to the users, you can select it from the Select a role dropdown. If no role has been set up for this app, you see "Default Access" role selected.
- In the Add Assignment dialog, click the Assign button.
Configure Pega Systems SSO
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:
Perform 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:
Perform 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 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.
In this section, you test your Azure AD single sign-on configuration with following options.
Click on Test this application in Azure portal. This will redirect to Pega Systems Sign on URL where you can initiate the login flow.
Go to Pega Systems Sign-on URL directly and initiate the login flow from there.
- Click on Test this application in Azure portal and you should be automatically signed in to the Pega Systems for which you set up the SSO.
You can also use Microsoft My Apps to test the application in any mode. When you click the Pega Systems tile in the My Apps, if configured in SP mode you would be redirected to the application sign on page for initiating the login flow and if configured in IDP mode, you should be automatically signed in to the Pega Systems for which you set up the SSO. For more information about the My Apps, see Introduction to the My Apps.
Once you configure Pega Systems you can enforce session control, which protects exfiltration and infiltration of your organization’s sensitive data in real time. Session control extends from Conditional Access. Learn how to enforce session control with Microsoft Defender for Cloud Apps.