Documentation
¶
Overview ¶
Ported from chi's basic_auth middleware implementation [Source](https://github.com/go-chi/chi/blob/v1.5.5/middleware/basic_auth.go)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasicAuth ¶
BasicAuth implements a simple middleware for HTTP Basic Authentication. It takes a realm (displayed in browser prompt) and a map of username -> password.
Example:
r.Use(middleware.BasicAuth("Restricted", map[string]string{
"admin": "secret",
"user": "password",
}))
func Logger ¶
func Logger(loggerOpts ...LoggerOptions) ivy.Handler
func RequiredQueryParams ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.