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
namemust be unique to the environment.The
redirectUrisproperty must contain the destination environment ID. Use the authentication path extension for your region, such asauth.pingone.euorauth.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
| Key | Datatype | Required | Description |
|---|---|---|---|
expand | string |
Request Body
{"enabled"=>true, "name"=>"OIDC-Web-App-from-Source-Environment_{{$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
| Key | Datatype | Required | Description |
|---|---|---|---|
Authorization | string | ||
Content-Type | string |