auth

package
v0.0.0-...-6136325 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2021 License: MIT Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL