Re: RFC on merge of PHPLib and Pear

From: Date: Wed, 07 Mar 2001 16:49:57 +0000
Subject: Re: RFC on merge of PHPLib and Pear
References: 1  Groups: php.pear 
Request: Send a blank email to php-pear+get-1639@lists.php.net to get a copy of this message
On Wed, 7 Mar 2001, Chuck Hagenbuch wrote: > Quoting Björn Schotte <bjoern@baer.main.de>: > > > But Auth is not a specific solution, Auth is very generic. And, > > another reason for placing these things in PEAR/ and not in > > PHPLib/ is that auth is such a basic thing for so many applications > > that it should be "PEAR Auth". > > Can you use phplib's auth to authenticate someone by ip address? What about by > username and password but only if they're coming from a certain ip address? The > list goes on and on... it's not generic. from auth.inc: ## ## Authentication dummies. Must be overridden by user. [...] function auth_validatelogin() { ; } you have to subclass the Auth-class from phplib to use it. You can do in your auth_validatelogin()-method what you want, it just has to (or should?) return false or a valid uid. What can be more generic? messju > I'm building such a system, btw, but I don't want to force it on anyone. > > -chuck > > -- > Charles Hagenbuch, <chuck@horde.org> > "Live, from Washington, where the doctors were telling us what they did, and > did not, do with Vice President Cheney." -Dan Rather

« previous php.pear (#1639) next »