Step 4: Assign a resource grant to the web application
POST {{apiPath}}/environments/{{envID}}/applications/{{webAppId}}/grants
After retrieving the openid
resource ID in Step 2 and the profile
scope in Step 3, you can use the POST /environments/{{envID}}/applications/{{appID}}/grants
operation to create a resource access grant for the new Web application.
The body of the request specifies the ID for the resource
property (openid
) and the ID for the scopes
(profile
) that you assign to the application resource grant.
The response data shows the resource grant ID and the scopes associated with the grant.
Request Body
{"resource"=>{"id"=>"{{openidResourceID}}"}, "scopes"=>[{"id"=>"{{oidcProfileID}}"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |