Authentication¶
Credentials are resolved immediately before every HTTP request, including stream reconnects.
Bearer authentication¶
Authentication = new EveBearerAuthentication(
cancellationToken => GetAccessTokenAsync(cancellationToken));
HTTP Basic authentication¶
Authentication = new EveBasicAuthentication(
"agent-client",
cancellationToken => GetPasswordAsync(cancellationToken));
Vercel OIDC¶
Authentication = new EveVercelOidcAuthentication(
cancellationToken => GetVercelOidcTokenAsync(cancellationToken));
Vercel OIDC emits both Authorization: Bearer ... and
x-vercel-trusted-oidc-idp-token.
Dynamic headers¶
HeadersProvider = async cancellationToken => new Dictionary<string, string>
{
["x-vercel-protection-bypass"] =
await GetProtectionBypassAsync(cancellationToken),
};
Header precedence is:
- Static client headers.
- Dynamic client headers.
- Per-turn headers.
- Authentication headers.
Configure credential-bearing transports not to follow cross-origin redirects.