Skip to content

Commit

Permalink
Documenting needed rewrite rule for HTTP auth with CGI.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuswilms committed Jun 29, 2013
1 parent aecd499 commit be5a252
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions security/auth/adapter/Http.php
Expand Up @@ -25,8 +25,18 @@
* )))
* }}}
*
* When running PHP as a CGI/FCGI PHP doesn't automatically parse the authorization
* header into `PHP_AUTH_*` headers. Lithium will work arround this issue by looking for
* a `HTTP_AUTHORIZATION` header instead. When using PHP as a CGI/FCGI in combination
* with Apache you must additionally add the following rewrite rule to your configuration
* in order to make the header available so Lithium can pick it up:
* {{{
* RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
* }}}
*
* @link http://tools.ietf.org/html/rfc2068#section-14.8
* @see lithium\action\Request
* @see lithium\action\Request::env
*/
class Http extends \lithium\core\Object {

Expand Down

0 comments on commit be5a252

Please sign in to comment.