Get device authorization request
GEThttps://$CUSTOM-DOMAIN/v2/oidc/device_authorization/:userCode
Get the device authorization based on the provided "user code". This will return the device authorization request, which contains the device authorization id that is required to authorize the request once the user signed in or to deny it.
Request​
Path Parameters
The user_code returned by the device authorization request and provided to the user by the device.
Responses​
- 200
- 403
- 404
- default
OK
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
deviceAuthorizationRequest
object
{
"deviceAuthorizationRequest": {
"id": "string",
"clientId": "string",
"scope": [
"string"
],
"appName": "string",
"projectName": "string"
}
}
- Schema
- Example (from schema)
Schema
deviceAuthorizationRequest
object
{
"deviceAuthorizationRequest": {
"id": "string",
"clientId": "string",
"scope": [
"string"
],
"appName": "string",
"projectName": "string"
}
}
- Schema
- Example (from schema)
Schema
deviceAuthorizationRequest
object
{
"deviceAuthorizationRequest": {
"id": "string",
"clientId": "string",
"scope": [
"string"
],
"appName": "string",
"projectName": "string"
}
}
Returned when the user does not have permission to access the resource.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Returned when the resource does not exist.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://$CUSTOM-DOMAIN/v2/oidc/device_authorization/:userCode' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'