Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *logrus.Logger
Logger is the Auth Logger Instance
Functions ¶
func RegisterAPIRoutes ¶
func RegisterAPIRoutes(r *mux.Router, sessionManager *rtc.SessionManager, userRepo *mgt.Repository)
RegisterAPIRoutes for Auth
Types ¶
type Middleware ¶
type Middleware struct { SessionStore *gormstore.Store CsrfKey []byte UserRepo mgt.Repository }
Middleware is the Type
func RegisterWebRoutes ¶
func RegisterWebRoutes(r *mux.Router, csrfKey []byte, userRepo mgt.Repository, sessionStore *gormstore.Store) *Middleware
RegisterWebRoutes for Auth
func (*Middleware) CsfrMiddleware ¶
func (m *Middleware) CsfrMiddleware(next http.Handler) http.Handler
CsfrMiddleware for Authentication and UserID in Context
func (*Middleware) SessionMiddleware ¶
func (m *Middleware) SessionMiddleware(next http.Handler) http.Handler
SessionMiddleware for Authentication and UserID in Context
Click to show internal directories.
Click to hide internal directories.