Another User Management Auth ACL Fancy Stuff Something Something library |
[eluser]davidbehler[/eluser]
Hey, it's been quite a while since I've updated my auth library and today at work I had some idle time and started thinking about a new one. There have been many discussions on what an auth/acl/whatever library should provide and wether we should distinguish between authentication, permission checking, registration, general user management and so on or put it into one library that handles everything. I, for my part like having a library that handles everything that's needed to authenticate a user (e.g. login/logout) and check his permissions (e.g. ACL). The other stuff (registration, activation,...) is mostly done by one of my controller in combination with a model. There is no real reason why I've seperated these parts, propably because of my projects that use to differ widely in that part. The other topic that's often discussed is how customizable a library should be and what parts should follow certain standards that would allow easy exchange of libraries (see here for a discussion on that topic started by xwero). Anyway, after not as much thinking as I would like to have put into this, I came up with a first draft of my new auth library: Code: <?php There isn't much functionality yet, but I guess you can see where this is headed: Easily customizable/extendable library that covers authentication/acl stuff/user management stuff. Using adapters (I "stole" this term from Zend) it's possible to allow for as many ways of authentication as you want. Database access, LDAP, predefined sets of username and password, Facebook, OpenID, OAuth? Everything is possible, as long as you got a fitting adapter If you carry the idea a bit further, you could add other adapters for session storage (database, cookie, php session, ...), registration and every other process you can think of. Sure, one might overdo things by using adapters for every aspect but I'm only saying it's possible There is still alot of work to do to make really makes this library work and that's exactly the reason for me to post here now, before I've even really started working on it: I want to hear your opinion on this! What do you think of this approach? Do you think it's worth the time? I would not do this for me, altruistic as I am, but rather for the community! Nearly every day there is someone asking for an auth library. Wouldn't it be nice to have one library that fits all their needs and if it doesn't can be easily extended? Tell me what you think! I'm looking forward to your comments! Greetz, waldmeister |
Messages In This Thread |
Another User Management Auth ACL Fancy Stuff Something Something library - by El Forum - 10-06-2009, 06:54 AM
Another User Management Auth ACL Fancy Stuff Something Something library - by El Forum - 10-06-2009, 07:32 AM
Another User Management Auth ACL Fancy Stuff Something Something library - by El Forum - 10-06-2009, 07:37 AM
Another User Management Auth ACL Fancy Stuff Something Something library - by El Forum - 10-06-2009, 07:40 AM
Another User Management Auth ACL Fancy Stuff Something Something library - by El Forum - 10-06-2009, 07:55 AM
Another User Management Auth ACL Fancy Stuff Something Something library - by El Forum - 10-07-2009, 08:16 PM
Another User Management Auth ACL Fancy Stuff Something Something library - by El Forum - 12-24-2009, 10:27 AM
|