Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiKey ¶
type ApiKey struct {
Value string
}
func (ApiKey) GetAuthInfo ¶
func (api ApiKey) GetAuthInfo(con *connection.Connection) (*http.Client, map[string]string, error)
Returns the header used for the authentification.
type BearerToken ¶
type BearerToken struct { AccessToken string RefreshToken string ExpiresIn uint // contains filtered or unexported fields }
func (BearerToken) GetAuthInfo ¶
func (bt BearerToken) GetAuthInfo(con *connection.Connection) (*http.Client, map[string]string, error)
type ClientCredentials ¶
type ClientCredentials struct { ClientSecret string Scopes []string // contains filtered or unexported fields }
func (ClientCredentials) GetAuthInfo ¶
func (cc ClientCredentials) GetAuthInfo(con *connection.Connection) (*http.Client, map[string]string, error)
type Config ¶
type Config interface {
GetAuthInfo(con *connection.Connection) (*http.Client, map[string]string, error)
}
type ResourceOwnerPasswordFlow ¶
type ResourceOwnerPasswordFlow struct { Username string Password string Scopes []string // contains filtered or unexported fields }
func (ResourceOwnerPasswordFlow) GetAuthInfo ¶
func (ro ResourceOwnerPasswordFlow) GetAuthInfo(con *connection.Connection) (*http.Client, map[string]string, error)
Click to show internal directories.
Click to hide internal directories.