Skip to content

Authentication

For sse and streamable-http transports, bridge supports three auth modes.

{ "auth": { "type": "bearer", "token": "${MY_API_TOKEN}" } }
{
"auth": {
"type": "header",
"headers": {
"X-API-Key": "${MY_KEY}",
"X-Tenant": "acme"
}
}
}
{
"auth": {
"type": "oauth2",
"clientId": "${CLIENT_ID}",
"clientSecret": "${CLIENT_SECRET}",
"tokenUrl": "https://provider.com/oauth/token",
"scopes": ["read", "write"]
}
}

OAuth2 tokens are acquired automatically, cached with expiry-aware refresh, and retried once on 401.

Detailed guides: