Dear Monks,
I am trying to use Catalyst::PluginAuthorization modules. However, according to Catalyst tutorial on CPAN, it seems that I must have 2 tables in database, one for user and one for roles.
My question is that I just have one table which contains user accounts, passwords and roles all together. Therefore, I cannot follow the yml file settings in tutorial as below code. Especially the line
role_rel: map_user_role which indicates the relationship between user table and role table. Please give me some hints about how should I do to fix the setting. Thanks.
authentication:
dbic:
user_class: MyappDB::User
user_field: username
password_field: password
password_type: clear
authorization:
dbic:
role_class: MyAppDB::User
role_field: role
role_rel: map_user_role
user_role_user_field: user_id