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 Options ¶
type Options struct { User string Password string ClientID string `mapstructure:"client_id"` ClientSecret string `mapstructure:"client_secret"` AuthorizationEndpoint string `mapstructure:"authorization_endpoint"` TokenEndpoint string `mapstructure:"token_endpoint"` IssuerURL string `mapstructure:"issuer_url"` 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
type Refresher ¶
Refresher should be implemented for refreshing access tokens with refresh token flow
Click to show internal directories.
Click to hide internal directories.