Feeds:
rss
atom
Acceptance Mark
Creative Commons License

Recent techNotes

Please read the Disclaimer
pAuthorize · 30 March 05

pAuthorize is a tool I sometimes use to implement a basic user/resource authentication functionality for websites where different users need access to different site resources. Using it will require a MySQL database and bit of tayloring.

The current release, version 0.3.4, is available under the GPL: pAuthorize.tgz

What follows is an excerpt from the README:

Out-of-the-box, pAuthorize applies a hierarchical value to each user and resource in order to determine a user’s authority to access the resource. A user’s authorization level must be equal-to or greater-than the authorization level of the resource in order to be granted access to the resource. For example, if user BOB has an auth-level 3, then BOB will be allowed to view all resources with auth-level 3 or lower. By default, there are four authorization levels defined at the time the database is created. This could be altered to suit any purpose by editing the file ‘tables.sql’. If desired, the hierarchical functionality of pAuthorize can be fairly easily changed, and a set of user-resource relationships established instead. By default, the SQL script creates a relate table (‘rel_user_resource’) that will handle these kinds of relationships.


Comments: