Step 1: Create a single-page application
POST {{apiPath}}/environments/{{envID}}/applications
You can use the POST /environments/{{envID}}/applications
endpoint to create the new single-page 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 ID is required in Step 8 to make the authorization request.
Request Body
{"enabled"=>true, "name"=>"Single-Page-App_{{$timestamp}}", "description"=>"A Single Page App", "type"=>"SINGLE_PAGE_APP", "protocol"=>"OPENID_CONNECT", "grantTypes"=>["IMPLICIT"], "redirectUris"=>["https://www.google.com"], "responseTypes"=>["TOKEN", "ID_TOKEN"], "tokenEndpointAuthMethod"=>"NONE", "refreshTokenDuration"=>86400, "refreshTokenRollingDuration"=>86400}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |