WWW::Authen::Simple

WWW::Authen::Simple is a cookie based session and authentication module using database backend.
Download

WWW::Authen::Simple Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Josh I. Miller
  • Publisher web site:
  • http://search.cpan.org/~unrtst/WWW-Authen-Simple-1.21/Simple.pm

WWW::Authen::Simple Tags


WWW::Authen::Simple Description

WWW::Authen::Simple is a cookie based session and authentication module using database backend. WWW::Authen::Simple is a cookie based session and authentication module using database backend. Also provides group based authorization.SYNOPSIS use WWW::Authen::Simple; my $simple = WWW::Authen::Simple->new( db => $DBI_handle, cookie_domain => 'cookie_domain' ); # Alternitively, any of the methods to set variables may also be # used directly in the constructor $simple->logout() if $cgi->param('logout'); $simple->login( $cgi->param('login'), $cgi->param('pass') ); if ($simple->logged_in()) { if ($simple->in_group('Admin','rw')) { &do_admin_page(); } else { &do_something(); } } else { print redirect('/login.pl'); }ABSTRACTWWW::Authen::Simple provides another way to do cookie based sessions and authentication. It's goal is to provide a very simple API to handle sessions and authentication.The database layout has been abstracted, so you should be able to fit this into whatever database layout you currently use, or use the provided default to base your application.NOTE: the database abstraction is configured by a hash. If changes to it's structure are needed, you currently have to rebuild the entire hash, and pass it in (ie. there is no API to make it easy to change yet). Requirements: · Perl


WWW::Authen::Simple Related Software