Re: Re: AUTH & LiveUser
| From: | Stijn de Reede \[SJR\] | Date: | Wed, 06 Nov 2002 17:59:58 +0000 |
| Subject: | Re: Re: AUTH & LiveUser | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-2650@lists.php.net to get a copy of this message | ||
I understood that it works with backend plugins for authentication. It's a very nice feature, however most likely not useful to most medium users. But I'll have to look into the code to see how everything works.
A medium and simple permission management driver would be great, indeed. But it's not clear to me yet how these would fit into the existing package, I'll have to explore the code more.
And yes, the great thing about open-source is that everyone can develop, and I'd like to help, if I can find the time.
Stijn
Limbourg Arnaud wrote:
Well, LiveUser works on a plugin approach, so you can add your own backends for permission and authentication. You can use several backends for auth and perm. Markus has a medium permission management driver almost ready AFAIK. There is also the need of writing a simple permission management backend (which looks more suited to your needs), but i don't think any work has been done on it so far. The great thing would be that you write (or help to write :)) such a backend so it could be introduced into the package. I plan on using it, sometimes in the end of november, at that time i should be able to devote some time to it. Markus, Lukas, any thoughts ? Arnaud. I'm in the same situation as you are. I'm rebuilding my Shop System, and planning to use PEAR. I've already played around a bit with DB, DB_DataObject and HTML_Template_Flexy, and so far I really like it. However there must also be a (simple) login feature on the site. My requirements: - login, logout - remember login by session (and maybe cookie) - 2 types of persons: Users and Admins - Right management: just assigning rights to Admins should be enough, but assigning rights to Groups and/or Admins could be useful too. Undoubtly LiveUser can do this all, and much more. However, it hasn't been updated in a while, or even well documented (which seems te be the problem with a lot of pear packages; this is familiar to me, writing docs isn't a lot of fun ;)). Right now I'm thinking I might implement my own simple Right management, just by letting the User class extend the DataObject class, and putting in some extra functions to check Rights. Just a simple 2 table scheme: admins & rights, with a 1-to-n mapping (and separately the user table, with nog Rights mapped to it). I'm not sure if this all is of any use to you, but I'm also interested in this discussion. On the LiveUser site there's a comment about making a more simple subset of the LiveUser class, this would be a very good idea imho. greets, Stijn de Reede the Netherlands -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php