{
  "issuer": "https://whos-in.app",
  "authorization_endpoint": "https://whos-in.app/api/v1/oauth/authorize",
  "token_endpoint": "https://whos-in.app/api/v1/oauth/token",
  "response_types_supported": [
    "code"
  ],
  "grant_types_supported": [
    "authorization_code",
    "refresh_token"
  ],
  "token_endpoint_auth_methods_supported": [
    "client_secret_post"
  ],
  "scopes_supported": [
    "read:events",
    "read:attendees",
    "write:events"
  ],
  "service_documentation": "https://whos-in.app/auth.md",
  "agent_auth": {
    "skill": "https://whos-in.app/auth.md",
    "register_uri": "https://whos-in.app/api-docs",
    "identity_types_supported": [
      "anonymous"
    ],
    "claim_uri": "https://whos-in.app/api-docs",
    "anonymous": {
      "credential_types_supported": [
        "bearer_token"
      ],
      "claim_uri": "https://whos-in.app/api-docs"
    },
    "credential_types": [
      "bearer_token"
    ],
    "revocation_uri": "mailto:api@whos-in.app?subject=Revoke%20agent%20OAuth%20client",
    "registration_methods": [
      {
        "type": "manual_provisioning",
        "register_uri": "mailto:api@whos-in.app?subject=Agent%20OAuth%20client%20registration",
        "grant_types": [
          "authorization_code",
          "refresh_token"
        ],
        "scopes_supported": [
          "read:events",
          "read:attendees"
        ],
        "description": "Email api@whos-in.app to provision an OAuth client (client_id, plus client_secret for confidential clients) for scoped agent access. Automated dynamic client registration is on the roadmap."
      }
    ]
  },
  "_note": "RFC 8414 §3.3: the issuer identifier MUST match the origin this metadata is served from (https://whos-in.app), so the protected-resource -> authorization-server discovery chain validates. The authorization server is the oauth function behind /api/v1/oauth/** (Authorization Code grant; the client authenticates at the token endpoint with client_secret in the request body; access tokens are opaque). Clients are provisioned by email (no dynamic registration yet). The separate /.well-known/openid-configuration mirrors the raw Firebase OIDC issuer used for sign-in, not this server. Contact: api@whos-in.app",
  "contact": "api@whos-in.app"
}
