[Catalyst] On authentication again

Byron Young Byron.Young at riverbed.com
Thu Mar 6 18:03:30 GMT 2008


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



More information about the Catalyst mailing list