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 anOPENID_CONNECT
application.The
type
property is required, and is set toWEB_APP
.Set
redirectUris
tohttps://example.com
andpostLogoutRedirectUris
tohttps://example.com/logout
. You will use theredirectUris
value in your GET Authorize call.Set
grantTypes
toAUTHORIZATION_CODE
andresponseTypes
toCODE
.
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
Key | Datatype | Required | Description |
---|---|---|---|
expand | string |
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
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |