Step 2: Create an OIDC application in the source environment

POST {{apiPath}}/environments/{{sourceEnvID}}/applications

Create an OIDC application in the source environment using a POST {{apiPath}}/environments/{{sourceEnvID}}/applications request.

  • In the request body, the application name must be unique to the environment. The redirectUris property must contain the destination environment ID. Use the authentication path extension for your region, such as auth.pingone.eu or auth.pingone.com. For example, https://auth.pingone.com/{{destinationEnvID}}/rp/callback/openid_connect.

See the example request body for other required properties. The response returns an application ID that you'll use in the next steps.

See Create Application (OIDC Protocol - Web App) for more information.

Request Params

KeyDatatypeRequiredDescription
expandstring

Request Body

{"enabled"=>true, "name"=>"SourceApp_{{$timestamp}}", "description"=>"Test Description - OIDC App (Web) from the source environment", "type"=>"WEB_APP", "protocol"=>"OPENID_CONNECT", "grantTypes"=>["AUTHORIZATION_CODE"], "postLogoutRedirectUris"=>["https://example.com/logout"], "redirectUris"=>["{{authPath}}/{{destinationEnvID}}/rp/callback/openid_connect"], "responseTypes"=>["CODE"], "tokenEndpointAuthMethod"=>"CLIENT_SECRET_BASIC", "pkceEnforcement"=>"OPTIONAL", "refreshTokenDuration"=>86400, "refreshTokenRollingDuration"=>86400}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring