Re[2]: [PHP-PEAR] RFC on merge of PHPLib and Pear

From: Date: Fri, 09 Mar 2001 13:19:43 +0000
Subject: Re[2]: [PHP-PEAR] RFC on merge of PHPLib and Pear
References: 1  Groups: php.pear 
Request: Send a blank email to php-pear+get-1747@lists.php.net to get a copy of this message
Hello Chuck, Wednesday, March 07, 2001, 7:42:30 PM, you wrote: CH> 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". CH> Can you use phplib's auth to authenticate someone by ip address? What about by CH> username and password but only if they're coming from a certain ip address? The CH> list goes on and on... it's not generic. I'm sorry but you're wrong. Auth is an API. Main Auth methods return a user id (if success) or false (if not). There are a lot of ways to authenticate a user using Auth besides the way described in PHPLib docs. Auth indeed is _very_ generic API. Write your own variant of Auth::auth_validatelogin, etc. - and you'll have it. Core Auth class does even know nothing about users data storage, etc. If you find a way to pass user's fingerprints to the Auth methods, I don't see a problem to make it work with this kind of data, using core auth class unchanged. -- Best regards, Maxim Derkachev mailto:kot@books.ru Symbol-Plus Publishing Ltd. phone: +7 (812) 324-53-53 http://www.Books.Ru -- All Books of Russia  

« previous php.pear (#1747) next »