Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CORS = echoMiddleware.CORS()
CORS is ready-to-use CORS Middleware
View Source
var GZIP = echoMiddleware.GzipWithConfig(echoMiddleware.GzipConfig{Level: 5})
GZIP is Configured ready-to-go GZIP middleware
View Source
var JWT = echoMiddleware.JWTWithConfig(jwtConfig)
JWT is Fully Configured JWT Middleware to Support CWBI-Auth
Functions ¶
func IsLoggedIn ¶
func IsLoggedIn(next echo.HandlerFunc) echo.HandlerFunc
IsLoggedIn sets appropriate actor fields based on the time of the request and the user claims in the JWT
func MockIsLoggedIn ¶
func MockIsLoggedIn(next echo.HandlerFunc) echo.HandlerFunc
MockIsLoggedIn sets appropriate actor fields based on the time of the request and mocked user information Necessary for running integration tests unauthenticated
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.