protected function authenticateOnServer($authUrl, $username, $password)
    {
        $response = $this->sendDigestAuthentication($authUrl, $username, $password);

        $httpCode = $response->getHttpCode();

        // If status code is not 200, something went wrong
        if (200 !== $httpCode) {
            throw new \Exception('Response with Status Code [' . $httpCode . '].', 500);
        }
    }
protected function authenticateOnServer($authUrl, $username, $password)
    {
        $response = $this->sendDigestAuthentication($authUrl, $username, $password);

        $httpCode = $response->getHttpCode();

        // If status code is not 200, something went wrong
        if (200 !== $httpCode) {
            throw new \Exception('Response with Status Code [' . $httpCode . '].', 500);
        }
    }
protected function authenticateOnServer ( $ authUrl , $ username , $ password ) { $ response = $ this -> sendDigestAuthentication ( $ authUrl , $ username , $ password ) ; $ httpCode = $ response -> getHttpCode ( ) ; // If status code is not 200, something went wrong if ( 200 !== $ httpCode ) { throw new \ Exception ( 'Response with Status Code [' . $ httpCode . '].' , 500 ) ; } }
Using digest authentication to authenticate user on the server.

@param  string $authUrl  URL to authenticate.
@param  string $username Username to access.
@param  string $password Password to access.
@throws \Exception If response
Using digest authentication to authenticate user on the server .