ProxyAuthK8S
ApiAuth_clusters

Start the mediated OAuth Authorization Server flow for a cluster

GET
/clusters/{ns}/{cluster}/oauth/authorize

Redirects the caller's browser to the cluster's upstream OIDC provider. If the cluster is not found, disabled, or discovery is not enabled, return 404.

Path Parameters

ns*string

Namespace containing the cluster.

cluster*string

Cluster name that should exist in the namespace.

Query Parameters

response_type*string

Must be code; this server only implements the authorization code grant.

client_id*string

Unvalidated: the proxy mediates the whole flow, so external clients never need to register with the upstream provider.

redirect_uri*string

Must be a loopback URI (http://localhost or http://127.0.0.1), any port/path.

state?|

Opaque value echoed back verbatim on redirect.

scope?|

Space-separated scopes asked of the upstream provider.

code_challenge*string

RFC 7636 PKCE code challenge (43-128 chars, unreserved charset).

code_challenge_method?|

Must be S256 when present; only S256 is supported.

Response Body

Redirect to the upstream identity provider.

Example Request
curl -X GET 'https://example.com/clusters/string/string/oauth/authorize?response_type=string&client_id=string&redirect_uri=string&code_challenge=string'
Example Response
Empty