Step 9: Create an application in the destination environment

POST {{apiPath}}/environments/{{destinationEnvID}}/applications

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

  • In the request body, the application name must be unique to the environment.

  • The protocol property is required, and in this example it specifies an OPENID_CONNECT application.

  • The type property is required, and is set to WEB_APP.

  • Set redirectUris to https://example.com and postLogoutRedirectUris to https://example.com/logout. You will use the redirectUris value in your GET Authorize call.

  • Set grantTypes to AUTHORIZATION_CODE and responseTypes to CODE.

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

For more information, see Create Application (OIDC Protocol - Web App).

Request Params

KeyDatatypeRequiredDescription
expandstring

Request Body

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

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring