# Functions
AsAuthError uses errors.As to unwrap any error and look for an *AuthError.
NewAugmentedConnectErrorInterceptor returns a new Connect Interceptor that wraps [connect.Error]s in an [AugmentedConnectError].
NewAuthorizationInterceptorProvider returns a new provider function which, when invoked, returns an interceptor which will set the auth token into the request header by the provided option.
NewCLIWarningInterceptor returns a new Connect Interceptor that logs CLI warnings returned by server responses.
NewDebugLoggingInterceptor returns a new Connect Interceptor that adds debug log statements for each rpc call.
NewNetrcTokenProvider returns a TokenProvider for a .netrc in a container.
NewSetCLIVersionInterceptor returns a new Connect Interceptor that sets the Buf CLI version into all request headers.
NewTokenProviderFromContainer creates a singleTokenProvider from the BUF_TOKEN environment variable.
NewTokenProviderFromString creates a singleTokenProvider by the token provided.
# Constants
AuthenticationHeader is the standard OAuth header used for authenticating a user.
AuthenticationTokenPrefix is the standard OAuth token prefix.
CliVersionHeaderName is the name of the header carrying the buf CLI version.
CLIWarningHeaderName is the name of the header carrying a base64-encoded warning message from the server to the CLI.
DefaultRemote is the default remote if none can be inferred from a module name.
TokenEnvKey is the environment variable key for the auth token.
# Structs
AugmentedConnectError wraps an error, providing the Procedure and Addr of the request for introspection in callers.
AuthError wraps the error returned in the auth provider to add additional context.
# Interfaces
TokenProvider finds the token for NewAuthorizationInterceptorProvider.