Basic HTTP Authentication & PHP-FastCGI

Igor Sysoev is at rambler-co.ru
Wed Jul 23 21:14:36 MSD 2008


On Tue, Jul 22, 2008 at 04:47:47PM +0100, Phillip B Oldham wrote:

> I'm sure its possible, but I can't seem to find any documentation on it...
> 
> How would I pass the Basic HTTP Authentication user & password over to 
> PHP to do the check?

User and password are passed in HTTP_AUTHORIZATION parameter in base64:
"user:passwd" value is encoded as "dXNlcjpwYXNzd2Q=".


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list