src/threadsafeclient.php
function set_auth_basic($username, $password)
    {
        \Mutex::lock($this->mutex);
        $this->auth_basic_user = $username;
        $this->auth_basic_pass = $password;
        \Mutex::unlock($this->mutex);
    }
function set_auth_basic($username, $password)
    {
        \Mutex::lock($this->mutex);
        $this->auth_basic_user = $username;
        $this->auth_basic_pass = $password;
        \Mutex::unlock($this->mutex);
    }
authentication with the configured endpoint.