{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/presify-io/json-schema/presify-io-authorization-server-metadata-schema.json",
  "title": "AuthorizationServerMetadata",
  "description": "RFC 8414 document.",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/presify-io-openapi.json#/components/schemas/AuthorizationServerMetadata",
  "type": "object",
  "required": [
    "issuer",
    "authorization_endpoint",
    "token_endpoint",
    "response_types_supported"
  ],
  "properties": {
    "issuer": {
      "type": "string",
      "format": "uri"
    },
    "authorization_endpoint": {
      "type": "string",
      "format": "uri"
    },
    "token_endpoint": {
      "type": "string",
      "format": "uri"
    },
    "registration_endpoint": {
      "type": "string",
      "format": "uri"
    },
    "revocation_endpoint": {
      "type": "string",
      "format": "uri"
    },
    "response_types_supported": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "grant_types_supported": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "code_challenge_methods_supported": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "token_endpoint_auth_methods_supported": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "revocation_endpoint_auth_methods_supported": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "scopes_supported": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "service_documentation": {
      "type": "string",
      "format": "uri",
      "description": "Public setup guide for connecting an MCP client."
    },
    "client_id_metadata_document_supported": {
      "type": "boolean",
      "description": "true when an https URL naming a Client ID Metadata Document is accepted as client_id (draft-ietf-oauth-client-id-metadata-document). Absent while the feature is switched off; dynamic client registration works either way."
    },
    "authorization_response_iss_parameter_supported": {
      "type": "boolean",
      "description": "true: every authorization response, success or error, carries iss (RFC 9207). A client should reject a response from Presify that lacks it."
    }
  }
}