{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipeshub/json-schema/pipeshub-generic-oauth-config-schema.json",
  "title": "GenericOAuthConfig",
  "description": "Generic OAuth 2.0 provider configuration",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipeshub-authentication-configuration-api-openapi.yml#/components/schemas/GenericOAuthConfig",
  "type": "object",
  "properties": {
    "providerName": {
      "type": "string",
      "description": "Display name for the OAuth provider"
    },
    "clientId": {
      "type": "string",
      "description": "OAuth client ID"
    },
    "clientSecret": {
      "type": "string",
      "description": "OAuth client secret"
    },
    "authorizationUrl": {
      "type": "string",
      "format": "uri",
      "description": "Authorization endpoint URL"
    },
    "tokenEndpoint": {
      "type": "string",
      "format": "uri",
      "description": "Token endpoint URL"
    },
    "userInfoEndpoint": {
      "type": "string",
      "format": "uri",
      "description": "User info endpoint URL"
    },
    "scope": {
      "type": "string",
      "description": "OAuth scopes to request"
    },
    "redirectUri": {
      "type": "string",
      "format": "uri",
      "description": "OAuth redirect URI"
    }
  }
}