Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator interface { ClientCredentials() (*Token, error) PasswordCredentials(user, password string) (*Token, error) }
Authenticator should be implemented for different authentication strategies
type Options ¶
type Options struct { User string Password string ClientID string `mapstructure:"client_id"` ClientSecret string `mapstructure:"client_secret"` Certificate string `mapstructure:"cert"` Key string `mapstructure:"key"` AuthorizationEndpoint string `mapstructure:"authorization_endpoint"` TokenEndpoint string `mapstructure:"token_endpoint"` IssuerURL string `mapstructure:"issuer_url"` AuthFlow Flow `mapstructure:"auth_flow"` TokenBasicAuth bool `mapstructure:"token_basic_auth"` SSLDisabled bool `mapstructure:"ssl_disabled"` Timeout time.Duration `mapstructure:"timeout"` }
Options is used to configure new authenticators and clients
func (*Options) MtlsEnabled ¶
Click to show internal directories.
Click to hide internal directories.