Versions in this module Expand all Collapse all v1 v1.2.0 Apr 1, 2019 Changes in this version type Options + EmailAddresses []string v1.1.0 Dec 4, 2018 Changes in this version + func AssignProvider(opts *Options) func(*Authenticator) error v1.0.0 Aug 23, 2018 Changes in this version + const SignatureHeader + const VERSION + var ErrUserNotAuthorized = errors.New("user not authorized") + var SignatureHeaders = []string + func AssignStatsdClient(opts *Options) func(*Authenticator) error + func GetActionTag(req *http.Request) string + func NewLoggingHandler(out io.Writer, h http.Handler, v bool, StatsdClient *statsd.Client) http.Handler + func SetCookieStore(opts *Options) func(*Authenticator) error + type Authenticator struct + AuthCodeCipher aead.Cipher + CacheRefreshTTL time.Duration + CookieSecure bool + EmailDomains []string + Footer string + Header string + Host string + PassUserHeaders bool + ProxyClientID string + ProxyClientSecret string + ProxyPrefix string + ProxyRootDomains []string + ServeMux http.Handler + SessionLifetimeTTL time.Duration + SetXAuthRequest bool + SkipProviderButton bool + StatsdClient *statsd.Client + Validator func(string) bool + func NewAuthenticator(opts *Options, optionFuncs ...func(*Authenticator) error) (*Authenticator, error) + func (p *Authenticator) ErrorResponse(rw http.ResponseWriter, req *http.Request, message string, code int) + func (p *Authenticator) GetProfile(rw http.ResponseWriter, req *http.Request) + func (p *Authenticator) GetRedirectURI(host string) string + func (p *Authenticator) LoadSession(req *http.Request) (*sessions.SessionState, error) + func (p *Authenticator) OAuthCallback(rw http.ResponseWriter, req *http.Request) + func (p *Authenticator) OAuthStart(rw http.ResponseWriter, req *http.Request) + func (p *Authenticator) PingPage(rw http.ResponseWriter, req *http.Request) + func (p *Authenticator) ProxyOAuthRedirect(rw http.ResponseWriter, req *http.Request, session *sessions.SessionState, ...) + func (p *Authenticator) Redeem(rw http.ResponseWriter, req *http.Request) + func (p *Authenticator) Refresh(rw http.ResponseWriter, req *http.Request) + func (p *Authenticator) RobotsTxt(rw http.ResponseWriter, req *http.Request) + func (p *Authenticator) SignIn(rw http.ResponseWriter, req *http.Request) + func (p *Authenticator) SignInPage(rw http.ResponseWriter, req *http.Request, code int) + func (p *Authenticator) SignOut(rw http.ResponseWriter, req *http.Request) + func (p *Authenticator) SignOutPage(rw http.ResponseWriter, req *http.Request, message string) + func (p *Authenticator) Stop() + func (p *Authenticator) ValidateToken(rw http.ResponseWriter, req *http.Request) + type HTTPError struct + Code int + Message string + func (h HTTPError) Error() string + type Options struct + ApprovalPrompt string + AuthCodeSecret string + ClientID string + ClientSecret string + CookieDomain string + CookieExpire time.Duration + CookieHTTPOnly bool + CookieName string + CookieRefresh time.Duration + CookieSecret string + CookieSecure bool + EmailDomains []string + Footer string + GoogleAdminEmail string + GoogleServiceAccountJSON string + GroupsCacheRefreshTTL time.Duration + GroupsCacheStopFunc func() + Host string + OldCookieSecret string + PassHostHeader bool + PassUserHeaders bool + Port int + ProfileURL string + Provider string + ProxyClientID string + ProxyClientSecret string + ProxyRootDomains []string + RedeemURL string + RedirectURL string + RequestLogging bool + RequestTimeout time.Duration + Scope string + SessionLifetimeTTL time.Duration + SetXAuthRequest bool + SignInURL string + SkipProviderButton bool + StatsdHost string + StatsdPort int + TCPReadTimeout time.Duration + TCPWriteTimeout time.Duration + ValidateURL string + func NewOptions() *Options + func (o *Options) Validate() error + type SignatureData struct