Configuring SAML authentication using App Studio
3 Tasks
1 hr
Scenario
To authenticate operators, MDC plans to use single sign-on (SSO) with SAML. As a Lead System Architect, your task is to design and implement SAML authentication as a proof of concept.
Many identity providers (IdPs) are available in the marketplace. Some are free, while others charge per user. Before selecting an IdP, MDC requires a proof of concept by using Okta. Okta provides identity management services that support secure and scalable authentication. When integrated with Pega Platform™ for business process management and customer engagement, Okta enables SSO and enhances security for Pega applications.
The following table provides the credentials you need to complete the challenge:
| Role | User name | Password |
|---|---|---|
| Admin | admin@deliveryservice | rules |
Before you begin:
- Register on the Okta developer site.
- On the Okta developer homepage, click Sign up, and then click Sign up for Integrator Free Plan.
Note: It is free to test, explore, and manage integrations.
- Create an Okta Developer Edition Service account.
- Complete the sign-up process.
Detailed Tasks
1 Configure Okta as the identity provider
- Log in to Okta Admin Console.
- In the navigation pane, click Applications > Applications, and then click Create App Integration.
- On the Create a new app integration landing page, in the Sign-in method section, select SAML 2.0.
- Click Next.
- Complete the General Settings section:
- In the App name field, enter Pega.
- Leave the App logo(optional) field empty.
- In the App visibility section, leave the Do not display application icon to users radio button clear.
- Click Next.
- Complete the Configure SAML settings section:
- In the Single sign-on URL field, enter https://<your-pega-server>/prweb/PRRestService/WebSSO/SAML/v2/AssertionConsumerService. Replace “your-pega-server" with your application specific host name and port number.
- In the Audience URI (SP Entity ID) field, enter RandomId.
- Leave the Default Relay State field empty.
- In the Name ID format field, select Unspecified.
- In the Application username field, select Okta username.
- In the Update application username on list, select Create and update.
- Click Save.
- Complete the Attribute Statements (optional) section:
- In the Name filed, enter user.firstName.
- In the Email field, enter user.email.
- Complete the Feedback section:
- In the App type field, select the This is an internal app that we have created checkbox.
- Click Finish.
- Review the SAML setup configuration, and then make a note of the Metadata URL.
- In the navigation pane, click Directory > People, and then click Add person.
- In the Add person dialog box, configure the user details:
- In the User type list, select User
- In the First name field, enter CLSA.
- In the Last name filed, enter POC.
- In the Username field, enter [email protected].
- In the Primary email filed, enter [email protected].
- Leave the Groups (optional) field empty.
- In the Activation field, select Activate now.
- Refresh the page if the newly added user does not appear.
- In the navigation pane, click Applications > Applications, and then open the Pega application that you created.
- On the Assignments tab, click Assign to select the users or groups who should have access to the application.
2 Create the new SSO in App Studio
- In the Pega Platform instance for the challenge, enter the following credentials:
- In the User name field, enter admin@deliveryservice.
- In the Password field, enter rules.
- In the header of Dev Studio, click Dev Studio > App Studio.
- In the navigation pane of App Studio, click Users.
- Click Authentication.
- Click Add authentication service, and then, in the list, select Create new > SAML2.
- In the Name filed, enter SAMLPoc.
- In the Create new single sign-on (SAML 2.0) window, click Import metadata and then enter the metadata URL of Okta (https://dev-33414028-admin.okta.com/app/exkjemeaj8Rdaau3q5d7/sso/saml/metadata).
- Click Submit.
- In the Map operator ID from claim section, select NameID.
- Select the Create operators for new users checkbox.
- In the Access role list, select DeliveryService:Authors.
- Click Submit.
- Confirm that the new SAMLPoc authentication service Rule is displayed with an Enabled status.
3 Set Pega as the service provider
- In the header of App Studio, click App Studio > Dev Studio.
- Search for and open the SAMLPoc authentication service Rule.
- In the Entity Identification, copy the value for the SAML authentication service.
- Return to the Okta Admin Console, click Applications > Applications, and then open the Pega application.
- In the General Settings section, click Edit.
- Update the Audience URI (SP Entity ID) with the Pega Platform Entity Identification that you captured in step 3.
Available in the following mission:
Want to help us improve this content?