Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Basic ¶
type Basic struct { Enabled bool `json:"enabled"` User string `json:"user"` Password string `json:"password"` }
Basic represents object for basic authentication
type Config ¶
type Config struct { Basic Basic `json:"basic"` OAuth2 OAuth2 `json:"oauth2"` X509 X509 `json:"x509"` }
Config represents object for authentication
type OAuth2 ¶
type OAuth2 struct { Enabled bool `json:"enabled"` TokenURL string `json:"tokenUrl"` AuthURL string `json:"authUrl"` ClientID string `json:"clientId"` ClientSecret string `json:"clientSecret"` Scopes []string `json:"scopes"` CachedToken oauth2.Token `json:"cachedToken,omitempty"` }
OAuth2 represents object for oauth2 authentication
Click to show internal directories.
Click to hide internal directories.