CGI::Auth::Auto

CGI::Auth::Auto script allows automatic authentication maintenance and persistence for cgi scrips.
Download

CGI::Auth::Auto Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Leo Charre
  • Publisher web site:
  • http://search.cpan.org/~leocharre/

CGI::Auth::Auto Tags


CGI::Auth::Auto Description

CGI::Auth::Auto script allows automatic authentication maintenance and persistence for cgi scrips. CGI::Auth::Auto script allows automatic authentication maintenance and persistence for cgi scrips.SYNOPSIS my $auth = new CGI::Auth::Auto; $auth->check; # ok, authenticated, logged in. # anything in the script that happens here on is received by an authenticated userThis is a system to add one line into a cgi script and now.. voila, it requires authrentication to run the rest of the code. You don't have to change anything else of what your script is already doing. It will work with CGI::Application instances as well.MOTIVATIONCGI::Auth is a nice module- But I wanted to be able to use it without having to set up a bunch of parameters to the constructor. This module attempts to make good guesses about what those parameters should be.The other thing this module addresses, is having to pass the session id around. CGI::Auth makes you pass the "session id"- Via query string, in a form, a cookie, etc.FEATURESI wanted to be able to simply drop in a line into any cgi application and have it take care of authentication without any further change to the code.I also wanted to not *have* to pass certain arguments to the constructor. So new() constrcutor had been overridden to optionally use default params for -authfields -logintmpl -authdir and -formaction.CGI::Auth::Auto has automatic "sess_file" id passing via a cookie.This module uses CGI::Auth as base.This module adds functionality to check() to keep track of the sess_file id for you, and to detect a user "logout" and do something about it.You use this exactly as you would use CGI::Auth, only the client *must* accept cookies. And you no longer have to worry about passing the session id returned from CGI::Auth. Basically this is like a plugin for any script you have that adds a nice authorization.Keep in mind you can fully edit the template for the login to make it look like whatever you want. Requirements: · Perl


CGI::Auth::Auto Related Software