Documentation
¶
Index ¶
- func AdminAuthMiddleware(next http.Handler) http.Handler
- func AuthAudienceMiddleware(next http.Handler) http.Handler
- func CORSMiddleware(next http.Handler) http.Handler
- func CSRFMiddleware(next http.Handler) http.Handler
- func CombineMiddlewares(middlewares []func(http.Handler) http.Handler) func(http.Handler) http.Handler
- func LoggingMiddleware(next http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminAuthMiddleware ¶ added in v1.0.0
AdminAuthMiddleware verifies that the request has a valid JWT token with an admin role. Used to protect admin-only endpoints.
func AuthAudienceMiddleware ¶ added in v1.0.0
AuthAudienceMiddleware checks that the JWT token has the correct audience (aud claim)
func CombineMiddlewares ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.