[Catalyst] On authentication again

Jay K jayk at ion0.com
Fri Mar 7 06:54:49 GMT 2008


Hi Byron,

Actually, it depends largely on what version of the module you are
using.

If you are up to date - the 'Plugin::Authentication' naming is the
proper way to do it (it now follows the configuration naming rules) -
but this is a relatively recent change and the 'authentication' naming
is still referred to as a backup naming if the 'proper' naming is not
found.

Jay


On Mar 6, 2008, at 11:03 AM, Byron Young wrote:

> Alex Povolotsky wrote:
>> I even don't understand what __PACKAGE__->config-> I should use -
>> {'Plugin::Authentication'}, {authentication}
>> or{authentication}{dbic}.
>> Docs are unclear.
>>
>
> Alex,
>
> It should be {authentication}.  Here's mine:
>
> authentication:
>    default_realm: database
>    realms:
>        database:
>            credential:
>                class: Password
>                password_field: password
>                password_type: hashed
>                password_hash_type: SHA-1
>            store:
>                class: DBIx::Class
>                user_class: DB::Users
>                id_field: username
>                role_field: name
>                role_relation: roles
>
> Hope that helps
>
> Byron
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/

---
"May we not return to those scoundrels of old, the illustrious
founders of superstition and fanaticism, who first took the knife from
the altar to make victims of those who refused to be their disciples."
- Voltaire





More information about the Catalyst mailing list