Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UrlParamAndJWTIndexIsExact ¶
func UrlParamAndJWTIndexIsExact(param, jwtIndex string, notAuthorizedHandler http.HandlerFunc) func(next http.Handler) http.Handler
UrlParamAndJWTIndexIsExact checks if the value a url param is exactly the same as the value a the jwt payload index.
Note: the jwt token is gotten from the authorization bearer header.
func UrlParamsShouldNotBeEmpty ¶
func UrlParamsShouldNotBeEmpty(notFoundHandler http.HandlerFunc, params ...string) func(next http.Handler) http.Handler
UrlParamsShouldNotBeEmpty returns a http middleware that checks if some url parameters are not empty.
If one of the parameter is empty it returns a 404 error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.