Documentation ¶
Overview ¶
Package basicauth implements HTTP Basic Authentication.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(c middleware.Controller) (middleware.Middleware, error)
New constructs a new BasicAuth middleware instance.
Types ¶
type BasicAuth ¶
type BasicAuth struct { Next middleware.Handler Rules []Rule }
BasicAuth is middleware to protect resources with a username and password. Note that HTTP Basic Authentication is not secure by itself and should not be used to protect important assets without HTTPS. Even then, the security of HTTP Basic Auth is disputed. Use discretion when deciding what to protect with BasicAuth.
Click to show internal directories.
Click to hide internal directories.