You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ended up editing the classes locally to account for that, but was wondering if something more could be done on your end?
The following doesn't do any checking if that function even exists, and the whole finding the header thing should maybe be refactored out to a separate function just to find the auth header, but this worked for me. I also un-confused the input $header with the value of the header. The first $header = $this->request->headers->get($header); was losing the requested header when that one wasn't in the lumen headers.
I just changed servers and even the above doesn't work with the new server that's substantially similar. I'm not sure what the responsible difference is.
if this is missing: # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
in apache config file you will run in the same error
I'm using Lumen 5.1 behind Apache 2.4 over HTTPS.
$request->headers did not have the Authorization header in it. I found http://stackoverflow.com/questions/26256730/slimframework-request-headers-don%C2%B4t-read-authorization/26285310#26285310 which lead me to look at the apache request headers, which does have the header.
I ended up editing the classes locally to account for that, but was wondering if something more could be done on your end?
The following doesn't do any checking if that function even exists, and the whole finding the header thing should maybe be refactored out to a separate function just to find the auth header, but this worked for me. I also un-confused the input $header with the value of the header. The first $header = $this->request->headers->get($header); was losing the requested header when that one wasn't in the lumen headers.
Laravel/Lumen seems uninterested in fixing/working around? laravel/framework#6482
The text was updated successfully, but these errors were encountered: