Step 1: Create an OpenID Connect (OIDC) application

POST {{apiPath}}/environments/{{envID}}/applications

You can use the POST /environments/{{envID}}/applications endpoint to create the new application. The application's protocol property is required, and in this example it specifies an OPENID_CONNECT application.

The response data returns information about the new application, including its id property, which identifies the UUID for this application resource. The application's UUID (shown below) is required in the next step to get the application's secret.

{

    "id": "4c2205d9-f3e4-4d6b-a83d-c754d46e329a"
}

Request Body

{"name"=>"AppWithCodeGrant_{{$timestamp}}", "enabled"=>true, "type"=>"WEB_APP", "protocol"=>"OPENID_CONNECT", "responseTypes"=>["CODE"], "grantTypes"=>["AUTHORIZATION_CODE"], "tokenEndpointAuthMethod"=>"CLIENT_SECRET_BASIC", "postLogoutRedirectUris"=>["https://www.example.com"], "redirectUris"=>["https://www.example.com"]}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring