protected function resolveHTTPAuth(array &$parameters, array &$headers)
    {
        $authorizationHeader = null;
        if (isset($parameters['HTTP_AUTHORIZATION'])) {
            $authorizationHeader = $parameters['HTTP_AUTHORIZATION'];
        } elseif (isset($parameters['REDIRECT_HTTP_AUTHORIZATION'])) {
            $authorizationHeader = $parameters['REDIRECT_HTTP_AUTHORIZATION'];
        }

        if ($authorizationHeader !== null && stripos($authorizationHeader, 'basic') === 0) {
            $exploded = explode(':', base64_decode(substr($authorizationHeader, 6)));
            if (count($exploded) == 2) {
                list($headers['PHP_AUTH_USER'], $headers['PHP_AUTH_PW']) = $exploded;
            }
        }
    }
protected function resolveHTTPAuth(array &$parameters, array &$headers)
    {
        $authorizationHeader = null;
        if (isset($parameters['HTTP_AUTHORIZATION'])) {
            $authorizationHeader = $parameters['HTTP_AUTHORIZATION'];
        } elseif (isset($parameters['REDIRECT_HTTP_AUTHORIZATION'])) {
            $authorizationHeader = $parameters['REDIRECT_HTTP_AUTHORIZATION'];
        }

        if ($authorizationHeader !== null && stripos($authorizationHeader, 'basic') === 0) {
            $exploded = explode(':', base64_decode(substr($authorizationHeader, 6)));
            if (count($exploded) == 2) {
                list($headers['PHP_AUTH_USER'], $headers['PHP_AUTH_PW']) = $exploded;
            }
        }
    }
protected function resolveHTTPAuth ( array & $ parameters , array & $ headers ) { $ authorizationHeader = null ; if ( isset ( $ parameters [ 'HTTP_AUTHORIZATION' ] ) ) { $ authorizationHeader = $ parameters [ 'HTTP_AUTHORIZATION' ] ; } elseif ( isset ( $ parameters [ 'REDIRECT_HTTP_AUTHORIZATION' ] ) ) { $ authorizationHeader = $ parameters [ 'REDIRECT_HTTP_AUTHORIZATION' ] ; } if ( $ authorizationHeader !== null && stripos ( $ authorizationHeader , 'basic' ) === 0 ) { $ exploded = explode ( ':' , base64_decode ( substr ( $ authorizationHeader , 6 ) ) ) ; if ( count ( $ exploded ) == 2 ) { list ( $ headers [ 'PHP_AUTH_USER' ] , $ headers [ 'PHP_AUTH_PW' ] ) = $ exploded ; } } }
Resolves authorisation header from HTTP AUTH headers

@param array $parameters
@param array $headers
Resolves authorisation header from HTTP AUTH headers