Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶ added in v1.5.0
type Authenticator interface { ClientCredentials() (*Token, error) PasswordCredentials(user, password string) (*Token, error) }
Authenticator should be implemented for different authentication strategies
type Flow ¶ added in v1.6.1
type Flow string
Flow defiens an OAuth 2 authentication flow, a.k.a. grant type
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
Click to show internal directories.
Click to hide internal directories.