NAME

Authorization::RBAC::Backend::DBIx - Backend 'DBIx' for Authorization::RBAC

VERSION

version 0.09

CONFIGURATION

$rbac = Authorization::RBAC->new(conf => 't/permfromdb.yml');

# with t/conf/permfromdb.yml :

Model::RBAC:
  schema_class: Schema::RBAC
  connect_info:
    dsn: dbi:SQLite:t/db/permsfromdb.db

Authorization::RBAC:
  debug: 0
  backend:
    name: DBIx
    model: Model::RBAC

REQUIRED SCHEMA

See t/lib/Schema/RBAC/Result/

User -> UserRole -> Role

Role -> Permission -> Object ( -> TypeObj ) -> Operation

PROVIDED METHODS

get_operations( $operations )

get_permission( $role, $op, $obj )

AUTHOR

Daniel Brosseau, <dab at catapulse.org>

LICENSE AND COPYRIGHT

Copyright 2011 Daniel Brosseau.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.