|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-08-21 19:31 UTC] jawed@php.net
[2014-08-21 23:48 UTC] datibbaw@php.net
[2014-08-22 00:54 UTC] jawed@php.net
[2014-08-22 00:55 UTC] jawed@php.net
[2014-08-22 03:57 UTC] jawed@php.net
[2014-08-22 03:57 UTC] jawed@php.net
[2014-08-22 06:53 UTC] cweiske@php.net
[2014-10-06 21:16 UTC] cweiske@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 19:00:01 2025 UTC |
Description: ------------ OAuthProvider extracts oauth data from the Authorization header which is available in $_SERVER['HTTP_AUTHORIZATION']. This fails on apache with FastCGI because that header does not exist there. It is common to use rewrite rules like > RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}] to pass the authorization header to the FastCGI process, but it will be prefixed with REDIRECT_: > REDIRECT_HTTP_AUTHORIZATION pecl/oauth should try to read from this variable in its oauthprovider::__construct method as fallback. Currently I have to manually parse that header and pass the oauth parameters as array to the constructor. But duplicating that functionality in userland isn't really nice.