Current time: 11-26-2024, 04:02 AM Hello There, Guest! (LoginRegister)


Post Reply 
Basic HTTP Auth Fails
Author Message
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #8
RE: Basic HTTP Auth Fails
On my server $_SERVER['PHP_AUTH_{USER,PW}'] variables are not auto-populated when running under fastcgi, and I've to "manually" build them from $_SERVER['HTTP_AUTHORIZATION'] directive like this (it's a single long line):

Code:
list($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) = explode(':' , base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6)));

Hope it helps!
(This post was last modified: 03-25-2009 10:11 PM by kilburn.)
03-25-2009 10:11 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Basic HTTP Auth Fails - satlizard26 - 03-22-2009, 03:39 PM
RE: Basic HTTP Auth Fails - BeNe - 03-23-2009, 06:23 AM
RE: Basic HTTP Auth Fails - rbtux - 03-23-2009, 06:31 AM
RE: Basic HTTP Auth Fails - satlizard26 - 03-24-2009, 03:26 AM
RE: Basic HTTP Auth Fails - rbtux - 03-24-2009, 03:30 AM
RE: Basic HTTP Auth Fails - satlizard26 - 03-25-2009, 03:24 AM
RE: Basic HTTP Auth Fails - rbtux - 03-25-2009, 04:08 AM
RE: Basic HTTP Auth Fails - kilburn - 03-25-2009 10:11 PM
RE: Basic HTTP Auth Fails - satlizard26 - 03-26-2009, 04:39 PM
RE: Basic HTTP Auth Fails - kilburn - 03-26-2009, 11:50 PM
RE: Basic HTTP Auth Fails - joximu - 04-02-2009, 09:54 PM
RE: Basic HTTP Auth Fails - pongraczi - 06-25-2009, 07:01 AM
RE: Basic HTTP Auth Fails - joximu - 06-25-2009, 08:17 AM
RE: Basic HTTP Auth Fails - pongraczi - 06-25-2009, 08:29 PM
RE: Basic HTTP Auth Fails - kilburn - 06-25-2009, 11:25 PM

Forum Jump:


User(s) browsing this thread: 4 Guest(s)