Challenge
Configuring OpenID Connect authentication using App Studio
Configuring OpenID Connect authentication using App Studio
3 Tasks
1 hr
Scenario
To authenticate operators, MDC plans to use OpenID Connect. As a Lead System Architect, your task is to design and implement OpenID Connect authentication as a proof of concept.
Pega Platform™ supports single sign-on (SSO) with OpenID Connect. You can use Gmail, Facebook, or any other OpenID Connect identity provider (IdP) to log in to Pega Platform applications.
Many 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 the 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 Sing-in method section, select OIDC – OpenID Connect.
- In the Application Type section, select Web Application.
- Next.
- Complete the General Settings section:
- In the App integration name field, enter MDC Web App.
- In the Grant type section, select the following checkboxes:
- Client Credential
- Authorization Code
- Refresh Token
- In the Assignments section, configure the access control options:
- In the Controlled access section, select Allow everyone in your organization to access.
- In the Enable immediate access (Recommended) section, clear the Enable immediate access with Federation Broker Mode checkbox.
- Click Save.
- 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 MDC.
- 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 list, select Activate now.
Note: You can either set a password for the user or allow Okta to generate a temporary password. If you choose to set the password, you can do so in the provided fields.
- Refresh the page if the newly added user does not appear.
- In the navigation pane, click Applications > Applications, and then open the MDC Web App that you created.
- On the Assignments tab, click Assign to select the users or groups who should have access to the MDC Web App 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 > OIDC.
- In the Name field, enter OpenIDPOC.
- In the Create new single sign-on (OpenID Connect) window, click Import metadata, and then enter the URL of okta (https://integrator-87031703-admin.okta.com/.well-known/openid-configuration).
Note: You must replace the hostname with your Okta admin registration.
- Click Submit.
- Return to the Otka Admin Console, and then, on the General tab, copy the client ID and client secrets.
- Return to App Studio, and then complete the configuration in the Create new single sign-on (OpenID Connect) window:
- In the Client ID field, enter the details that you captured from Okta Admin Console in step 7.
- In the Client secret field, enter the details that you captured from Okta Admin Console in step 7.
- In the Map operator ID from claim field, enter {email}.
- Select Create operators for new users check box.
- In the Access role list, select DeliveryService:Authors.
- Click Submit.
- Confirm that the new OpenIDPOC 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 OpenIDPOC authentication service Rule.
- In the Redirect URI field, copy the value for the OpenID Connect authentication service.
- Return to the Okta Admin Console, click Applications > Applications, and then open the MDC Web App application.
- In the General Settings section, click Edit.
- Update the sign-in and sign-out redirect URIs with the Pega Platform redirect URI that you captured in step 3.
Available in the following mission:
Want to help us improve this content?