func (a *HTTPBasicAuth) Authenticate(w http.ResponseWriter, r *http.Request) (*authdb.UserContext, error) {
	store := serve.GetService(r).UserStore
	username, password, ok := r.BasicAuth()
	if !ok {
		return nil, nil
	}
	return store.Validate(r.Context(), username, password)
}
// Authenticate authenticates a request against a user store using HTTP Basic
// Auth.
Authenticate authenticates a request against a user store using HTTP Basic
Auth.
// Authenticate authenticates a request against a user store using HTTP Basic // Auth .
func (a *HTTPBasicAuth) Authenticate(w http.ResponseWriter, r *http.Request) (*authdb.UserContext, error) {
	store := serve.GetService(r).UserStore
	username, password, ok := r.BasicAuth()
	if !ok {
		return nil, nil
	}
	return store.Validate(r.Context(), username, password)
}
func ( a * HTTPBasicAuth ) Authenticate ( w http . ResponseWriter , r * http . Request ) ( * authdb . UserContext , error ) { store := serve . GetService ( r ) . UserStore username , password , ok := r . BasicAuth ( ) if ! ok { return nil , nil } return store . Validate ( r . Context ( ) , username , password ) }
Authenticate authenticates a request against a user store using HTTP Basic
Auth.
Authenticate authenticates a request against a user store using HTTP Basic Auth .