Skip to main content

handle_token

Function handle_token 

Source
pub async fn handle_token(
    http: &OauthHttpClient,
    proxy: &OAuthProxyConfig,
    body: &str,
) -> Response
Expand description

Handle POST /token - proxy the token request to the upstream provider.

Forwards the request body (authorization code exchange or refresh token grant) to the upstream token endpoint, injecting client credentials when configured (confidential client). Returns the upstream response as-is.