Step 8: Create an OIDC 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
namemust be unique to the environment.The
protocolproperty is required, and in this example it specifies anOPENID_CONNECTapplication.The
typeproperty is required, and is set toWEB_APP.Set
redirectUristohttps://example.comandpostLogoutRedirectUristohttps://example.com/logout. You will use theredirectUrisvalue in your GET Authorize call.Set
grantTypestoAUTHORIZATION_CODEandresponseTypestoCODE.
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"=>"OIDC-Web-App-Destination-Environment_{{$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 |