Step 3: 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 asauth.pingone.eu
orauth.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"=>"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
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |