Versions in this module Expand all Collapse all v1 v1.0.0 Nov 9, 2020 Changes in this version + func ContextClient(ctx context.Context) *http.Client + func ParseKey(key []byte) (*rsa.PrivateKey, error) + func RegisterBrokenAuthHeaderProvider(tokenURL string) + func ResetAuthCache() + type AuthStyle int + const AuthStyleInHeader + const AuthStyleInParams + const AuthStyleUnknown + type ContextKey struct + var HTTPClient ContextKey + type RetrieveError struct + Body []byte + Response *http.Response + func (r *RetrieveError) Error() string + type Token struct + AccessToken string + Expiry time.Time + Raw interface{} + RefreshToken string + TokenType string + func RetrieveToken(ctx context.Context, clientID, clientSecret, tokenURL string, v url.Values, ...) (*Token, error)