Gantry::Control::C::AuthzCDBI

Database based authorization for Class::DBI.
Download

Gantry::Control::C::AuthzCDBI Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Tim Keefer
  • Publisher web site:
  • http://search.cpan.org/~tkeefer/

Gantry::Control::C::AuthzCDBI Tags


Gantry::Control::C::AuthzCDBI Description

Database based authorization for Class::DBI. Gantry::Control::C::AuthzCDBI - Database based authorization for Class::DBI.SYNOPSIS use Gantry::Control::C::AuthzCDBI qw/-Engine=MP20/;This is a simple database driven autorization system for use with apps which rely on Class::DBI (or one of its descendents). If you use a different ORM, you probably want Gantry::Control::C::AuthzRegular instead of this module. This module also details the other Authz modules in the library.METHODSuser_model Returns Gantry::Control::Model::auth_users_cdbi. If you want something else, try Gantry::Control::C::AuthenRegular or make your own Gantry::Control::C::AuthzBase subclass.group_members_model Returns Gantry::Control::Model::group_members_cdbi. If you want something else, try Gantry::Control::C::AuthzRegular or make your own Gantry::Control::C::AuthzBase subclass.APACHESample Apache conf configuration. < Perl > use Gantry::Control::C::AuthzCDBI qw/-Engine=MP20/; < /Perl > < Location /location/to/auth > AuthType Basic AuthName "Manual" PerlSetVar auth_dbconn 'dbi:Pg:dbname=...' PerlSetVar auth_dbuser '< database_user >' PerlSetVar auth_dbpass '< database_password >' PerlSetVar auth_dbcommit off PerlAuthzHandler Gantry::Control::C::AuthzCDBI require group "group_to_require" < /Location >DATABASEThese are the tables that will be queried for the authorization of the user. create table "auth_users" ( "id" int4 default nextval('auth_users_seq') NOT NULL, "user_id" int4, "active" bool, "user_name" varchar, "passwd" varchar, "crypt" varchar, "first_name" varchar, "last_name" varchar, "email" varchar ); create table "auth_groups" ( "id" int4 default nextval('auth_groups_seq') NOT NULL, "ident" varchar, "name" varchar, "description" text ); create table "auth_group_members" ( "id" int4 default nextval('auth_group_members_seq') NOT NULL, "user_id" int4, "group_id" int4 ); create table "auth_pages" ( "id" int4 default nextval('auth_pages_seq') NOT NULL, "user_perm" int4, "group_perm" int4, "owner_id" int4, "group_id" int4, "uri" varchar, "title" varchar ); Requirements: · Perl


Gantry::Control::C::AuthzCDBI Related Software