Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApiBasicAuth ¶ added in v0.0.8
func ApiBasicAuth(db ApiUserRepository) func(next http.Handler) http.Handler
ApiBasicAuth will check the basic auth credentials sent in the request against the known users, and return a JSON response if authentication has failed.
func BrowserBasicAuth ¶ added in v0.0.8
func BrowserBasicAuth(db ApiUserRepository) func(next http.Handler) http.Handler
BrowserBasicAuth will check the basic auth credentials sent in the request against the known users, and (re)-request basic auth credentials if authentication has failed.
Types ¶
type ApiUser ¶
func (ApiUser) CheckPassword ¶
Click to show internal directories.
Click to hide internal directories.