[Catalyst] CDBI and Authentication::Store::DBIC - anyone using it?
Lars Balker Rasmussen
lars at balker.dk
Tue Nov 14 13:36:28 GMT 2006
On Wed, Nov 08, 2006 at 02:14:38PM -0600, Jay K wrote:
> I am currently working on some fixes to
> Catalyst::Plugin::Authentication::Store::DBIC, and there is a fair
> amount of hackery in there to make it work with CDBI objects.
Whoops, behind on mail.
> My questions are:
>
> 1) Is anyone actually using it with CDBI?
Yes. DBIC would be VERY nice to have, but is not feasible for quite
some time yet.
> 2) If so - are you also using the C::P::Authorization::Role module?
Yes.
> 3) optional, care to share your configuraiton so I can see how people
> are actually using it?
authentication => {
dbic => {
catalyst_user_class => "Catalyst::Plugin::Authentication::Store::DBIC::User::CDBI",
user_class => 'MyApp::M::CDBI::Users',
user_field => 'email',
password_field => 'password',
password_type => 'hashed',
password_hash_type => 'MD5',
},
},
authorization => {
dbic => {
role_class => 'MyApp::M::CDBI::Role',
role_field => 'name',
user_role_class => 'MyApp::M::CDBI::UserRole',
user_role_user_field => 'user_id',
user_role_role_field => 'role_id',
},
},
Note the catalyst_user_class hack, which gets around the DBIC/CDBI
autodetecting issue (which hasn't been reliable for me).
--
Lars Balker Rasmussen Consult::Perl
More information about the Catalyst
mailing list