Documentation ¶
Index ¶
- Variables
- type Authboss
- func (a Authboss) AddUserIDToContext(handler http.Handler) http.Handler
- func (a Authboss) DataInjector(handler http.Handler) http.Handler
- func (a Authboss) DefaultMiddlewares() []func(http.Handler) http.Handler
- func (a Authboss) Flush(rw http.ResponseWriter) error
- func (a Authboss) ProtectMidelewares() []func(http.Handler) http.Handler
- func (a Authboss) RedirectIfLoggedIn(h http.Handler) http.Handler
- func (a Authboss) Router() http.Handler
- type Mailer
- type Renderer
Constants ¶
This section is empty.
Variables ¶
GetCsrfToken gets the csrf token that authboss adds to HTMLData
Functions ¶
This section is empty.
Types ¶
type Authboss ¶
type Authboss struct { *authboss.Authboss // For module middlewares ExtraDefaultMiddlewares []func(http.Handler) http.Handler ExtraProtectMiddlewares []func(http.Handler) http.Handler }
Authboss satisfies the Auth interface Based on the excellent package github.com/volatiletech/authboss
func (Authboss) AddUserIDToContext ¶
AddUserIDToContext is a middleware that adds some auth related values to context
func (Authboss) DataInjector ¶
DataInjector is a middleware that adds some auth related values to context
func (Authboss) DefaultMiddlewares ¶
DefaultMiddlewares satisfies the Auth interfaces
func (Authboss) Flush ¶
func (a Authboss) Flush(rw http.ResponseWriter) error
Flush satisfies the Auth interface
func (Authboss) ProtectMidelewares ¶
ProtectMidelewares satisfies the Auth interfaces
func (Authboss) RedirectIfLoggedIn ¶
RedirectIfLoggedIn redirects logged in users if visiting the login or register page
Click to show internal directories.
Click to hide internal directories.