[Catalyst] Extending C::Plugin::Authentication::Store::DBIC for
additional constraints
Doran L. Barton
fozz at iodynamics.com
Mon Mar 26 05:32:42 GMT 2007
I'd like some advice on how to do this. I'm developing a single Cat app
that will handle multiple sites by looking at the 'host' header. All
sites will be associated with domain names under a specific domain. Think
wildcard A records in DNS, if you will. For example, all of the following
would be caught and handled by the app:
foo.mycatalystsite.com
bar.mycatalystsite.com
foobar.mycatalystsite.com
I want each site to have its own pool of users for authentication. The
users table, therefore, has a site_id associated with each user.
Herein lies the gotcha! I need to be able to tell the Authentication plugin
to authenticate the user using $username, $password, and a site_id (as
opposed to the usual $username and $password). After looking through the
Catalyst::Plugin::Authentication::Store::DBIC code, I can't immediately see
how I could subclass it and add this functionality.
Thoughts, anyone?
--
fozz at iodynamics.com is Doran L. Barton, president/CTO, Iodynamics LLC
Iodynamics: IT and Web services by Linux/Open Source specialists
"Vertical parking only."
-- Seen in a Tokyo traffic handbook
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070325/86707082/attachment.pgp
More information about the Catalyst
mailing list