PHP: 'Authorization' header sent with request, but missing from apache_request_headers()

Possible explanation: The Authorization header was stripped away by Apache server. Try adding the following lines in .htaccess:

RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]