code: public function usingPasswordAuthentication($user, $pass = '')
      {
          $this->config->setUser($user);
          $this->config->setPass($pass);
          $this->config->setAuth(true);
  
          return $this;
      }
docs: usingPasswordAuthentication
  
  Build nodes with password authentication
  
  User authentication and access rules are only available in Riak versions 2 and above. To use this feature, TSL
  is required to communicate with your Riak nodes.
  
  @param $user
  @param $pass
  @return $this