Versions in this module Expand all Collapse all v1 v1.38.0 Mar 1, 2017 Changes in this version + const NoAuthUrlErrorMessage + func ClearProviders() + func ContextForClient(h *http.Client) context.Context + func HTTPClientWithFallBack(h *http.Client) *http.Client + func UseProviders(viders ...Provider) + type Params interface + Get func(string) string + type Provider interface + BeginAuth func(state string) (Session, error) + Debug func(bool) + FetchUser func(Session) (User, error) + Name func() string + RefreshToken func(refreshToken string) (*oauth2.Token, error) + RefreshTokenAvailable func() bool + SetName func(name string) + UnmarshalSession func(string) (Session, error) + func GetProvider(name string) (Provider, error) + type Providers map[string]Provider + func GetProviders() Providers + type Session interface + Authorize func(Provider, Params) (string, error) + GetAuthURL func() (string, error) + Marshal func() string + type User struct + AccessToken string + AccessTokenSecret string + AvatarURL string + Description string + Email string + ExpiresAt time.Time + FirstName string + LastName string + Location string + Name string + NickName string + Provider string + RawData map[string]interface{} + RefreshToken string + UserID string