src/pubcontrolclient.php
function set_auth_basic($username, $password)
    {
        $this->auth_basic_user = $username;
        $this->auth_basic_pass = $password;
        if ($this->tsclient != null)
            $this->tsclient->set_auth_basic($username, $password);
    }
function set_auth_basic($username, $password)
    {
        $this->auth_basic_user = $username;
        $this->auth_basic_pass = $password;
        if ($this->tsclient != null)
            $this->tsclient->set_auth_basic($username, $password);
    }
authentication with the configured endpoint.