Step 5: Authorize (device)

POST {{authPath}}/{{envID}}/as/device_authorization

The POST /{{envID}}/as/device_authorization endpoint initiates a device authorization operation on applications that specify DEVICE_CODE as the grantTypes property value. The POST request's parameters and their values are Form Serialized by adding the parameter names and values to the entity body of the HTTP request and specifying the Content-Type: application/x-www-form-urlencoded request header. The authorization request must include values for the following properties:

  • client_id

A string that specifies the application's UUID, which was returned in Step 1.

  • scope

A string that specifies permissions that determine the resources that the application can access.

The response returns a 200 OK message along with the device_code, user_code, and verification_uri values.

Request Body

[{"name"=>"client_id", "value"=>"{{deviceAuthAppID}}", "datatype"=>"string"}, {"name"=>"scope", "value"=>"openid", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring