PeerTube · Schema

OAuthToken-password

VideoDecentralizedFederationOpen SourceActivityPubSelf-HostedStreaming
View JSON Schema on GitHub

JSON Schema

OAuthToken-password.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/peertube/main/json-schema/OAuthToken-password.json",
  "title": "OAuthToken-password",
  "allOf": [
    {
      "$ref": "#/components/schemas/OAuthClient"
    },
    {
      "type": "object",
      "properties": {
        "grant_type": {
          "type": "string",
          "enum": [
            "password"
          ]
        },
        "username": {
          "$ref": "#/components/schemas/User/properties/username"
        },
        "password": {
          "$ref": "#/components/schemas/password"
        },
        "externalAuthToken": {
          "type": "string",
          "description": "If you want to authenticate using an external authentication token you got from an auth plugin (like `peertube-plugin-auth-openid-connect` for example) instead of a password or a refresh token, provide it here."
        }
      }
    }
  ],
  "required": [
    "client_id",
    "client_secret",
    "grant_type",
    "username"
  ]
}