code: func (a *Authenticator) AuthenticateRequest(req *http.Request) (*authenticator.Response, bool, error) {
  	username, password, found := req.BasicAuth()
  	if !found {
  		return nil, false, nil
  	}
  
  	resp, ok, err := a.auth.AuthenticatePassword(req.Context(), username, password)
  
  	// If the password authenticator didn't error, provide a default error
  	if !ok && err == nil {
  		err = errInvalidAuth
  	}
  
  	return resp, ok, err
  }
docs: // AuthenticateRequest authenticates the request using the "Authorization: Basic" header in the request