Dancer::Plugin::Auth::RBAC::Permissions::Config - Dancer::Plugin::Auth::RBAC access control via the Dancer configuration file!
version 1.110720
plugins: Auth::RBAC: permissions: class: Config options: control: admin: permissions: manage accounts: operations: - view - create - update - delete user: permissions: manage accounts: operations: - view - create guests: permissions: manage accounts: operations: - view
Dancer::Plugin::Auth::RBAC::Permissions::Config uses your Dancer application configuration file as role-based access control system.
The subject_asa method (found in every permissions class) validates whether a user has the role defined in the supplied argument.
return 1 if subject_asa($self, $options, $role);
The subject_can method (found in every permissions class) validates whether a user is responsible for (or is authorized to operate) a particular operation and can perform the specified action under that operation.
return 1 if subject_can($self, $options, $operation, $action);
Al Newkirk <awncorp@cpan.org>
This software is copyright (c) 2010 by awncorp.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Dancer::Plugin::Auth::RBAC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer::Plugin::Auth::RBAC
CPAN shell
perl -MCPAN -e shell install Dancer::Plugin::Auth::RBAC
For more information on module installation, please visit the detailed CPAN module installation guide.