Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuth2Authenticator ¶
type OAuth2Authenticator struct { Provider string `json:"provider"` Token string `json:"access_token"` }
OAuth2Authenticator allows chttp authentication with Flashback's OAuth2 middleware proxy.
func NewOAuth2 ¶
func NewOAuth2(provider, token string) *OAuth2Authenticator
NewOAuth2 returns a new kivik chttp authenticator based on the provided OAuth2 provider and token.
func (*OAuth2Authenticator) Authenticate ¶
Authenticate attempts to authenticate with an OAuth2 token.
Click to show internal directories.
Click to hide internal directories.