Description

New creates a static username/password auth middleware.

Example:

app.UseBasicAuth(basicauth.New("admin", "password"))

It doesn't get simpler than that.

If you want to handle the username and password checks dynamically, copy the source of `New`, it's 8 lines and you can tweak at will.

New is referenced in 1 repository

github.com/raphael/goa-cellar