Versions in this module Expand all Collapse all v1 v1.0.2 Nov 5, 2023 v1.0.1 Nov 5, 2023 Changes in this version + var DefaultAuth0ClientInfo = &Auth0ClientInfo + var DefaultRetryOptions = RetryOptions + var UserAgent = fmt.Sprintf("Go-Auth0/%s", auth0.Version) + func Auth0ClientInfoTransport(base http.RoundTripper, auth0ClientInfo *Auth0ClientInfo) (http.RoundTripper, error) + func DebugTransport(base http.RoundTripper, debug bool) http.RoundTripper + func OAuth2ClientCredentials(ctx context.Context, uri, clientID, clientSecret string) oauth2.TokenSource + func OAuth2ClientCredentialsAndAudience(ctx context.Context, uri, clientID, clientSecret, audience string) oauth2.TokenSource + func RetriesTransport(base http.RoundTripper, r RetryOptions) http.RoundTripper + func StaticToken(token string) oauth2.TokenSource + func UserAgentTransport(base http.RoundTripper, userAgent string) http.RoundTripper + func Wrap(base *http.Client, options ...Option) *http.Client + func WrapWithTokenSource(base *http.Client, tokenSource oauth2.TokenSource, options ...Option) *http.Client + type Auth0ClientInfo struct + Env map[string]string + Name string + Version string + func (td *Auth0ClientInfo) IsEmpty() bool + type Option func(*http.Client) + func WithAuth0ClientInfo(auth0ClientInfo *Auth0ClientInfo) Option + func WithDebug(debug bool) Option + func WithRetries(r RetryOptions) Option + func WithUserAgent(userAgent string) Option + type RetryOptions struct + MaxRetries int + Statuses []int + func (r *RetryOptions) IsEmpty() bool + type RoundTripFunc func(*http.Request) (*http.Response, error) + func (rf RoundTripFunc) RoundTrip(req *http.Request) (*http.Response, error)