Yes, I meant the authentication. I'm adding code right after authentication to check for existence if the user in the db, adding them if not as well as assigning the default role then I want to store the list of roles in the session so I can control access. Working my way through it.
Tomas Doran <[email protected]> wrote on 05/24/2012 10:06:33 AM: > From: > > Tomas Doran <[email protected]> > > To: > > The elegant MVC web framework <[email protected]> > > Date: > > 05/24/2012 10:11 AM > > Subject: > > Re: [Catalyst] Role problems, Still > > > On 24 May 2012, at 13:45, Kenneth S Mclane wrote: > > > Well since the passwords are maintained by a company wide system > and can be authenticated via LDAP, I don't think I want to reinvent > the authorization, since it is working. > > I think I will just reinvent the role checking, which should be > much simpler. > > Erm? The role checking _is_ the authorisation?? > > You mean 'the authentication'? > > And I'm not suggesting you re-invent it… I was suggesting you > continue to do it from LDAP? > > > My question is: can I store the role information in the user > session? I'll be reading up on that today. Maybe one day I'll get > ambitious and figure out how to do it the way I wanted to. > > sure, you can just subclass the user class with your own user class > to override the 'roles' method, and the 'for_session' and > 'from_session' methods to do what you want. > > Cheers > t0m > > _______________________________________________ > List: [email protected] > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: http://www.mail-archive.com/[email protected]/ > Dev site: http://dev.catalyst.perl.org/ >
_______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
