Versions in this module Expand all Collapse all v0 v0.4.0 Apr 20, 2020 Changes in this version + var CookieExpiration time.Duration = 72 * time.Hour + var DefaultConfigName = "OAUTH2_GOOGLE" + var StateExpiration time.Duration = 20 * time.Minute + var TokenEpiration time.Duration = 72 * time.Hour + func Module() *typapp.Module + type AuthCntrl struct + func (c *AuthCntrl) Callback(ce echo.Context) (err error) + func (c *AuthCntrl) Login(ce echo.Context) (err error) + func (c *AuthCntrl) Logout(ce echo.Context) (err error) + func (c *AuthCntrl) Middleware() echo.MiddlewareFunc + func (c *AuthCntrl) SetTokenCtxMiddleware() echo.MiddlewareFunc + type AuthService interface + GetAuthCodeURL func(ce echo.Context, cookieSecure bool) string + VerifyCallback func(ce echo.Context, jwtSecret string) (string, error) + func NewService(cfg *Config) AuthService + type AuthServiceImpl struct + func (c *AuthServiceImpl) GetAuthCodeURL(ce echo.Context, cookieSecure bool) (authCodeURL string) + func (c *AuthServiceImpl) VerifyCallback(ce echo.Context, jwtSecret string) (string, error) + type Config struct + Callback string + ClientID string + ClientSecret string + CookieSecure bool + HostedDomain string + JWTSecret string + LogoutRedirect string + RedirectFailure string + RedirectSuccess string