Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AdminRoleKey = "chore_admin" UserRoleKey = "chore_user" AdminRole = authecho.MiddlewareRole(authecho.WithRoles("chore_admin")) UserRole = authecho.MiddlewareRole(authecho.WithRoles("chore_user", "chore_admin")) PatToken = authecho.MiddlewareControl(PatTokenExist) DisableTokenCheck = "disable_token_check" )
Functions ¶
func IDFromBody ¶
func IDFromBody(c echo.Context) string
func IDFromQuery ¶
func IDFromQuery(c echo.Context) string
func JWTCheck ¶
func JWTCheck(getID func(c echo.Context) string) func(next echo.HandlerFunc) echo.HandlerFunc
JWTCheck comes after the auth middleware to check ID's can have do that.
func PatTokenExist ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.