{
  "repo": "tidbcloud/mimir",
  "binary": "oauth2",
  "binary_path": "cmd/oauth2/main.go",
  "surface_kind": "http_service",
  "type": "http_service",
  "extensions": {
    "notes": [
      "cmd/oauth2 is a long-running HTTP auth helper bound to :8888, not a one-shot administrative CLI.",
      "The binary bootstraps a Kubernetes controller-runtime client during process startup and serves request traffic with gorilla/mux."
    ]
  },
  "services": [
    {
      "name": "OAuth2HTTP",
      "type": "http",
      "methods": [
        {
          "name": "POST /api/v1/login",
          "name_key": "OAuth2HTTP.POSTLogin",
          "path": "/api/v1/login",
          "method": "POST",
          "description": "Builds the Auth0 authorization URL for the given login state."
        },
        {
          "name": "POST /api/v1/login/{code}",
          "name_key": "OAuth2HTTP.POSTLoginCode",
          "path": "/api/v1/login/{code}",
          "method": "POST",
          "description": "Exchanges the OAuth code, creates or fetches the client certificate, and returns auth material."
        },
        {
          "name": "GET /callback*",
          "name_key": "OAuth2HTTP.GETCallback",
          "path": "/callback*",
          "method": "GET",
          "description": "OAuth callback handler wired through the oauth service package."
        }
      ]
    }
  ]
}
