Mojolicious::Plugin::AuthorizationA plugin to make Authorization a bit easier | |
Download |
Mojolicious::Plugin::Authorization Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- John Scoles
- Publisher web site:
- http://search.cpan.org/~byterock/
Mojolicious::Plugin::Authorization Tags
Mojolicious::Plugin::Authorization Description
Mojolicious::Plugin::Authorization is a very simple API implementation of role-based access control (RBAC). This plugin is only an API you will have to do all the work of setting up your roles and privileges and then provide four subs that are used by the plugin.The plugin expects that the current session will be used to get the role its privileges. It also assumes that you have already been authenticated and your role set. That is about it you are free to implement any system you like.SYNOPSIS use Mojolicious::Plugin::Authorization $self->plugin('Authorization' => { 'has_priv' => sub { ... }, 'is_role' => sub { ... }, 'user_privs' => sub { ... }, 'user_role' => sub { ... }, }); if ($self->has_priv('delete_all', { optional => 'extra data stuff' })) { ... }Product's homepage
Mojolicious::Plugin::Authorization Related Software