Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOauth2ClientCredentials ¶
func NewOauth2ClientCredentials(clientID, clientSecret, tokenUrl string, scopes []string) auth.Authenticator
Types ¶
type OAuthPassThroughAuthenticator ¶ added in v1.3.7
type OAuthPassThroughAuthenticator struct {
// contains filtered or unexported fields
}
func NewOAuthPassThroughAuthenticator ¶ added in v1.3.7
func NewOAuthPassThroughAuthenticator(ts *TokenStorage) *OAuthPassThroughAuthenticator
func (*OAuthPassThroughAuthenticator) Authenticate ¶ added in v1.3.7
func (a *OAuthPassThroughAuthenticator) Authenticate(r *http.Request) error
type TokenStorage ¶ added in v1.3.6
type TokenStorage struct {
// contains filtered or unexported fields
}
func NewTokenStorage ¶ added in v1.3.6
func NewTokenStorage(initialToken string) *TokenStorage
func (*TokenStorage) Get ¶ added in v1.3.6
func (ts *TokenStorage) Get() string
func (*TokenStorage) Update ¶ added in v1.3.6
func (ts *TokenStorage) Update(newToken string)
Click to show internal directories.
Click to hide internal directories.