Step 1: Create a web application
POST {{apiPath}}/environments/{{envID}}/applications
Use the POST /environments/{{envID}}/applications
endpoint to create a 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. You will need the application's UUID property value in Step 4 to create a new resource access grant for the application.
See Create Application (OIDC Protocol - Web App) for more information.
Request Body
{"enabled"=>true, "name"=>"CustomResourceApp_{{$timestamp}}", "description"=>"This is an OIDC Web application.", "type"=>"WEB_APP", "protocol"=>"OPENID_CONNECT", "grantTypes"=>["AUTHORIZATION_CODE"], "redirectUris"=>["https://www.google.com"], "responseTypes"=>["CODE"], "tokenEndpointAuthMethod"=>"CLIENT_SECRET_BASIC"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |