Documentation ¶
Index ¶
- func AuthenticateMiddleware(ctx lucid.Context) lucid.Middleware
- func CsrfProtectMiddleware(next http.Handler) http.Handler
- func CsrfSetterMiddleware(next http.Handler) http.Handler
- func CsrfShouldSkipMiddleware(next http.Handler) http.Handler
- func HttpAccessLogMiddleware(ctx lucid.Context, next http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticateMiddleware ¶
func AuthenticateMiddleware(ctx lucid.Context) lucid.Middleware
func CsrfProtectMiddleware ¶
CsrfProtectMiddleware here, we initialize gorilla's csrf by default we set the csrf_auth_key too
func CsrfSetterMiddleware ¶
CsrfSetterMiddleware here, we pass the token as X-CSRF-Token via header
func CsrfShouldSkipMiddleware ¶
CsrfShouldSkipMiddleware here, we determine if we should skip the csrf mainly we skip if the condition inside IsJsonRequest(...) returns true, basically if the request wanted a json response
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.