Documentation
¶
Overview ¶
Package middlewares contains HTTP middlewares used across the gateway.
Package middlewares contains HTTP middlewares used across the gateway.
Index ¶
- func Auth(logger *slog.Logger, jwtSecret string) func(http.Handler) http.Handler
- func BasicAuth(logger *slog.Logger, creds config.SecurityConfig, userService *user.Service) func(http.Handler) http.Handler
- func Recover(logger *slog.Logger) func(http.Handler) http.Handler
- func Tag() func(http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasicAuth ¶
func BasicAuth( logger *slog.Logger, creds config.SecurityConfig, userService *user.Service, ) func(http.Handler) http.Handler
BasicAuth inspects the Authorization header for Basic scheme and, if present, validates against the configured username/password.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.