Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
func NewAuthenticator ¶
func NewAuthenticator(key string, secret string, filestore storage.Storage, oauthClient OauthClient, ui UiAdapter) Authenticator
type OauthClient ¶
type OauthClient interface { NewConsumer(key string, secret string, requestTokenUrl string, authorizeTokenUrl string, accessTokenUrl string) OauthConsumer }
func NewOauthClient ¶
func NewOauthClient() OauthClient
type OauthConsumer ¶
type OauthConsumer interface { GetRequestTokenAndUrl(callbackUrl string) (rtoken *oauth.RequestToken, loginUrl string, err error) AuthorizeToken(rtoken *oauth.RequestToken, verificationCode string) (atoken *oauth.AccessToken, err error) SetAdditionalParams(params map[string]string) MakeHttpClient(token *oauth.AccessToken) (*http.Client, error) }
Click to show internal directories.
Click to hide internal directories.