Re: Auth and Registry

Joshua <[email protected]> Fri, 29 Apr 2005 12:52:15 -0600
Newsgroups gmane.comp.lib.nexista.devel
Message-ID <[email protected]>
Well the hooks that are in now let you use an external auth system - the 
prepend file has examples. So whatever auth system you use (one user, one 
password all the way to full blown roles) fits right in. Basically all nx 
wants is an array of roles - if you dont use roles then it can just be 
groups, whatever - nx calls them roles/actions but what they actually are in 
you auth system is irrelevant.   You can also add whatever criterias in the 
registry as you need using the provided function (Auth::setSessiondata()) for 
your own use - say you need to add things like user's gender or whatever and 
keep it all under the same place as the rest.

So your prepend file should define the login, auth, etc.. methods (can be 
functions or callable object/methods) that will return the needed data.   You 

make sense?


On Friday 29 April 2005 1:55, Albert Lash wrote:
> Hi Joshua,
>
> I'm going to work on the auth system for the PHP5 Nx. Do you have any
> input? I remember you had some ideas about the registry, and it appears
> that you've developed a significant amount of code surrounding those
> ideas.
>
> I'm going to compare the old with the new, as well as PSA 4.x, and try to
> come up with the best and easiest solution. Your ideas about an
> auth-independent framework will be integrated as well, of course.
>
> Alby