Step 1: Create a worker application
POST {{apiPath}}/environments/{{envID}}/applications
You can use the POST /environments/{{envID}}/applications
endpoint to create the new worker application. The application's protocol
property is required, and it must be an OPENID_CONNECT
application. A non-interactive worker application also requires only the client_credentials
option for the grantTypes
property, and the configuration does not specify response types.
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 3 to authenticate the token request.
Request Body
{"enabled"=>true, "name"=>"UseCaseWorkerApp_{{$timestamp}}", "description"=>"UseCaseWorkerApp", "type"=>"WORKER", "protocol"=>"OPENID_CONNECT", "grantTypes"=>["CLIENT_CREDENTIALS"], "postLogoutRedirectUris"=>["https://example.com/logout"], "redirectUris"=>["https://example.com"], "tokenEndpointAuthMethod"=>"CLIENT_SECRET_BASIC", "pkceEnforcement"=>"OPTIONAL", "refreshTokenDuration"=>86400, "refreshTokenRollingDuration"=>86400}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |