{
  "repo": "tidbcloud/kube-oidc",
  "binary": "kube-oidc-login",
  "binary_path": "cmd/kube-oidc-login/main.go",
  "surface_kind": "http_service",
  "type": "http_service",
  "services": [
    {
      "name": "LoginHTTP",
      "type": "http",
      "methods": [
        {
          "name": "LoginEntry",
          "name_key": "HTTP GET /",
          "path": "/",
          "method": "GET",
          "description": "Start the OIDC authorization flow by minting a state cookie and redirecting the browser to the provider authorization endpoint."
        },
        {
          "name": "LoginCallback",
          "name_key": "HTTP GET /login/callback",
          "path": "/login/callback",
          "method": "GET",
          "description": "Exchange the OAuth2 authorization code for tokens, store the ID token in a cookie, and render the kubeconfig download page."
        },
        {
          "name": "DownloadKubeconfig",
          "name_key": "HTTP GET /login/dl",
          "path": "/login/dl",
          "method": "GET",
          "description": "Render and download a kubeconfig embedding the Kubernetes endpoint, optional CA bundle, and the issued ID token."
        }
      ]
    }
  ],
  "extensions": {}
}
