Documentation ¶
Index ¶
Constants ¶
View Source
const ContextLoginKey = "echo-basic-auth.login"
ContextLoginKey is the key used to store the login after successful auth in the context
Variables ¶
This section is empty.
Functions ¶
func NewMiddleware ¶
func NewMiddleware(auths ...*Auth) echo.MiddlewareFunc
NewMiddleware returns a new BasicAuth middleware instance
func NewValidator ¶
func NewValidator(auths ...*Auth) middleware.BasicAuthValidator
NewValidator returns a new BasicAuthValidator
Types ¶
Click to show internal directories.
Click to hide internal directories.