Versions in this module Expand all Collapse all v1 v1.0.1 Nov 1, 2017 v1.0.0 Nov 1, 2017 Changes in this version + var ErrSessonNotStarted = errors.New("Session not started") + var StorageSessionName = "go_oauth2_server_session" + var UserSessionKey = "go_oauth2_server_user" + type Service struct + func NewService(cnf *config.Config, sessionStore sessions.Store) *Service + func (s *Service) ClearUserSession() error + func (s *Service) Close() + func (s *Service) GetFlashMessage() (interface{}, error) + func (s *Service) GetUserSession() (*UserSession, error) + func (s *Service) SetFlashMessage(msg string) error + func (s *Service) SetSessionService(r *http.Request, w http.ResponseWriter) + func (s *Service) SetUserSession(userSession *UserSession) error + func (s *Service) StartSession() error + type ServiceInterface interface + ClearUserSession func() error + Close func() + GetFlashMessage func() (interface{}, error) + GetUserSession func() (*UserSession, error) + SetFlashMessage func(msg string) error + SetSessionService func(r *http.Request, w http.ResponseWriter) + SetUserSession func(userSession *UserSession) error + StartSession func() error + type UserSession struct + AccessToken string + ClientID string + RefreshToken string + Username string