Versions in this module Expand all Collapse all v0 v0.12.2 Jun 26, 2024 Changes in this version + const ConfigParamAudience + const ConfigParamClientID + const ConfigParamIssuerURL + const ConfigParamKeyFile + const ConfigParamScope + const ConfigParamType + const ConfigParamTypeClientCredentials + type HTTPAuthProvider interface + RoundTrip func(req *http.Request) (*http.Response, error) + Transport func() http.RoundTripper + WithTransport func(tripper http.RoundTripper) error + type HTTPTransport struct + T http.RoundTripper + type Provider interface + GetData func() ([]byte, error) + GetTLSCertificate func() (*tls.Certificate, error) + Init func() error + Name func() string + func NewAuthDisabled() Provider + func NewAuthenticationAthenz(providerDomain string, tenantDomain string, tenantService string, ...) Provider + func NewAuthenticationAthenzWithParams(params map[string]string) (Provider, error) + func NewAuthenticationBasic(username, password string) (Provider, error) + func NewAuthenticationBasicWithParams(params map[string]string) (Provider, error) + func NewAuthenticationFromTLSCertSupplier(tlsCertSupplier func() (*tls.Certificate, error)) Provider + func NewAuthenticationOAuth2(issuer oauth2.Issuer, store store.Store) Provider + func NewAuthenticationOAuth2WithParams(params map[string]string) (Provider, error) + func NewAuthenticationTLS(certificatePath string, privateKeyPath string) Provider + func NewAuthenticationTLSWithParams(params map[string]string) Provider + func NewAuthenticationToken(token string) Provider + func NewAuthenticationTokenFromFile(tokenFilePath string) Provider + func NewAuthenticationTokenFromSupplier(tokenSupplier func() (string, error)) Provider + func NewAuthenticationTokenWithParams(params map[string]string) (Provider, error) + func NewProvider(name string, params string) (Provider, error)