Versions in this module Expand all Collapse all v0 v0.1.1 Aug 27, 2024 Changes in this version + const ProviderName + var DefaultFailureHandler = http.HandlerFunc(failureHandler) + var ErrCannotValidateGoogleUser = errors.New("could not validate google user") + var ErrContextMissingErrorValue = fmt.Errorf("context missing error value") + var ErrContextMissingGoogleUser = errors.New("context missing google user") + var ErrFailedConstructingEndpointURL = errors.New("error constructing URL") + var ErrServerError = errors.New("server error") + var ErrUnableToGetGoogleUser = errors.New("unable to get google user") + func CallbackHandler(config *oauth2.Config, success, failure http.Handler) http.Handler + func ErrorFromContext(ctx context.Context) error + func LoginHandler(config *oauth2.Config, failure http.Handler) http.Handler + func StateHandler(config sessions.CookieConfig, success http.Handler) http.Handler + func UserFromContext(ctx context.Context) (*google.Userinfo, error) + func VerifyClientToken(ctx context.Context, token *oauth2.Token, config *oauth2.Config, email string) (err error) + func WithError(ctx context.Context, err error) context.Context + func WithUser(ctx context.Context, user *google.Userinfo) context.Context + type ProviderConfig struct + ClientEndpoint string + ClientID string + ClientSecret string + RedirectURL string + Scopes []string