You can configure configure DTP to accept authentication from an OpenID Connect identity provider. This enables you to manage user authentication outside of Parasoft. Support for OpenID Connect is disabled by default.
...
Register the necessary redirect URIs so that the OIDC server knows where to send the user after authentication. The following redirect URIs that should be registered:
Required:
<DTP_INSTALL>HOST>:<PORT>/pst/login/oauth2/code/dtp
<DTP_INSTALL>HOST>:<PORT>/pstsec/login/oauth2/code/dtp
(User Administration)<DTP_INSTALL>HOST>:<PORT>/grs/login/oauth2/code/dtp
(Required for Report Center/Enterprise Pack)
Optional. The following redirect URIs are optional and only need to be registered to enable log in directly through individual applications:
<DTP_INSTALL>HOST>:<PORT>/licenseserver/login/oauth2/code/dtp
(License Server)<DATA_COLLECTOR>COLLECTOR_URL>/login/oauth2/code/dtp
(Data Collector)
...
When you go to the DTP login page, you will be redirected to the OpenID Connect authentication interface. After specifying your credentials, you will be logged in and redirected back to DTP.
Advanced Configuration
Enabling Basic Authentication for Automation (CLI) Users
There are two ways that automation users can authenticate with DTP via OIDC:
- Device code authentication
- Certification authentication
Your organization may want a simpler way for automation users to authenticate with DTP.
You can do this by enabling basic authentication for automation users. To do so:
- Create automation user(s) in User Administration with a username and password.
- Enable basic authentication by adding
"enableBasicAuth": true
to the oidc.json file.
Restart DTP to apply your changes.
When basic authentication is enabled:
- DTP UI will still enforce OIDC authentication
- DTP REST API will accept both OIDC and basic authentication
- Automation users will call DTP REST API using basic authentication
Example Configurations
The following examples are intended to help you understand how to connect DTP to your identity access management system. Refer to the documentation for your software for implementation details.
Keycloak
The following configurations are prerequisites for configuring OpenID Connect for Keycloak as described in this example:
...
Refer to the Keycloak documentation for additional information.
...
Azure (Microsoft Entra ID)
As a prerequisite, you must configure authentication for the Azure app to allow the following web redirect URIs:
https://<DTP_HOST>:<PORT>/grs/login/oauth2/code/dtp
https://<DTP_HOST>:<PORT>/licenseserver/login/oauth2/code/dtp
https://<DTP_HOST>:<PORT>/pst/login/oauth2/code/dtp
https://<DTP_HOST>:<PORT>/pstsec/login/oauth2/code/dtp
The port is not required if the host uses the default HTTPS port 443.
The following example demonstrates how to configure OpenID Connect for GoogleAzure. In In this example, two two administrator users (admin1
and admin2
[email protected]
and [email protected]
) will be created.
Code Block | ||
---|---|---|
| ||
{
| ||
No Format | ||
"enabled": true, "issuerUri": "https://accountslogin.googlemicrosoftonline.com/<tenantId>/v2.0", "clientId": "<clientId-from-google>Azure>", "clientSecret": "<clientSecret-from-google>Azure>", "scopes": ["openid", "profile", "email"], "claimMappings": { { "username": "given_nameemail", "firstName": "given_name", "lastName": "family_name", "email": "email" }, "adminUsers": ["admin1","admin2"] "[email protected]", "[email protected]" ] } |
The claimMappings
uses fields from the response to https://graph.microsoft.com/oidc/userinfo
, which contains a limited set of fields. The following contains an example response for the user with the email address [email protected]
.
Code Block | ||
---|---|---|
| ||
{
"sub": "<unique value for user>",
"name": "Jane Jones",
"given_name": "Jane",
"family_name": "Jones",
"picture": "https://graph.microsoft.com/v1.0/me/photo/$value",
"email": "[email protected]"
} |
Refer to Microsoft's documentation for additional information.Refer to Google's documentation for additional information.
Connect2id
The following example demonstrates how to configure OpenID Connect for connect2id. Users must access DTP over HTTPS when using connect2id as the OpenID Connect provider.In this example, c2id
is the name of the realm. Two administrator users (admin1
and admin2
) will be created.
...
The first time you log into DTP through connect2id, you may receive an "Invalid Request" error. To resolve the error, use a different browser or clear the cache of your current browser.
Azure
As a prerequisite, you must configure authentication for the Azure app to allow the following web redirect URIs:
https://<DTP_HOST>:<PORT>/grs/login/oauth2/code/dtp
https://<DTP_HOST>:<PORT>/licenseserver/login/oauth2/code/dtp
https://<DTP_HOST>:<PORT>/pst/login/oauth2/code/dtp
https://<DTP_HOST>:<PORT>/pstsec/login/oauth2/code/dtp
The port is not required if the host uses the default HTTPS port 443.
The The following example demonstrates how to configure OpenID Connect for AzureGoogle. In In this example, two two administrator users ([email protected]
and [email protected]
admin1
and admin2
) will be created.
No Format | ||
---|---|---|
Code Block | ||
| ||
{ "enabled": true, "issuerUri": "https://loginaccounts.microsoftonlinegoogle.com/<tenantId>/v2.0", "clientId": "<clientId-from-Azure>google>", "clientSecret": "<clientSecret-from-Azure>google>", "scopes": ["openid", "profile", "email"], "claimMappings": { { "username": "emailgiven_name", "firstName": "given_name", "lastName": "family_name", "email": "email" }, "adminUsers": [ "[email protected]", "[email protected]" ] } |
The claimMappings
uses fields from the response to https://graph.microsoft.com/oidc/userinfo
, which contains a limited set of fields. The following contains an example response for the user with the email address [email protected]
.
Code Block | ||
---|---|---|
| ||
{
"sub": "<unique value for user>",
"name": "Jane Jones",
"given_name": "Jane",
"family_name": "Jones",
"picture": "https://graph.microsoft.com/v1.0/me/photo/$value",
"email": "[email protected]"
} |
"admin1","admin2"] |
Refer to Google's documentation for additional information. Refer to Microsoft's documentation for additional information.
Logout Configuration
DTP uses end_session_endpoint
from the OIDC issuer to log out the user from the OIDC server. This property must be defined in the <OIDC_ISSUER_URL>/.well-known/openid-configuration
payload.
...