Gantry::Control::C::AuthenBase

Database based authentication.
Download

Gantry::Control::C::AuthenBase 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::AuthenBase Tags


Gantry::Control::C::AuthenBase Description

Database based authentication. Gantry::Control::C::AuthenBase is a Perl module with database based authentication.SYNOPSISuse Gantry::Control::C::AuthenSubClass qw/-Engine=MP20/;This module allows authentication against a database. It has two subclasses: AuthenRegular and AuthenCDBI. Use the latter if you use Class::DBI (or Class::DBI::Sweet). Use the former otherwise.APACHESample Apache conf configuration < Location /location/to/auth > AuthType Basic AuthName "Manual" PerlSetVar auth_dbconn 'dbi:Pg:' PerlSetVar auth_dbuser '' PerlSetVar auth_dbpass '' PerlSetVar auth_dbcommit off PerlAuthenHandler Gantry::Control::C::AuthenSubClass require valid-user < /Location >Replace AuthenSubClass with AuthenCDBI if you use Class::DBI (or any descendent of it) or with AuthenRegular if you use any other ORM.DATABASEThis is the table that will be queried for the authentication 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 ); Requirements: · Perl


Gantry::Control::C::AuthenBase Related Software