GitLab · JSON Structure

Gitlab Oauth2 Device Authorization Request Structure

DeviceAuthorizationRequest from GitLab API

Type: object Properties: 2 Required: 1
CodePlatformSoftware DevelopmentSource Control

DeviceAuthorizationRequest is a JSON Structure definition published by GitLab, describing 2 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

client_id scope

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/gitlab/refs/heads/main/json-structure/gitlab-oauth2-device-authorization-request-structure.json",
  "name": "DeviceAuthorizationRequest",
  "description": "DeviceAuthorizationRequest from GitLab API",
  "type": "object",
  "properties": {
    "client_id": {
      "type": "string",
      "description": "The application ID registered in GitLab.",
      "example": "123456"
    },
    "scope": {
      "type": "string",
      "description": "Space-separated list of requested scopes.",
      "example": "example_value"
    }
  },
  "required": [
    "client_id"
  ]
}