CGI::Session::Auth

Authenticated sessions for CGI scripts
Download

CGI::Session::Auth Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jochen Lillich
  • Publisher web site:
  • http://search.cpan.org/~geewiz/

CGI::Session::Auth Tags


CGI::Session::Auth Description

Authenticated sessions for CGI scripts CGI::Session::Auth is a Perl module implementing authenticated sessions for web applicationsCGI::Session::Auth is a Perl class that provides the necessary functions for authentication in CGI scripts. It uses CGI::Session for session management and supports several backends for user and group data storage.CGI::Session::Auth offers an alternative to HTTP authentication. Its goal is to integrate the authentication process into the web application as seamless as possible while keeping the programming interface simple.Users can authenticate themselves by entering their user name and password into a login form. This is the most common way of authenticating a web site visitor.Alternatively, a user can automatically be authenticated by his IP address. This is useful when authorized users can't be bothered to log in manually but can be identified by a range of fixed IP addresses.CGI::Session::Auth manages a profile for every user account, containing his user name, his password and his user id. The user profile may contain additional fields for arbitrary data.IMPORTANT: The class CGI::Session::Auth itself is only an abstract base class with no real storage backend (only the user 'guest' with password 'guest' may log in). You have to derive a child class that implements its own _login() method where the actual authentication takes place.SYNOPSIS use CGI; use CGI::Session; use CGI::Session::Auth; # CGI object for headers, cookies, etc. my $cgi = new CGI; # CGI::Session object for session handling my $session = new CGI::Session(undef, $cgi, {Directory=>'/tmp'}); # CGI::Session::Auth object for authentication my $auth = new CGI::Session::Auth({ CGI => $cgi, Session => $session }); $auth->authenticate(); # check if visitor has already logged in if ($auth->loggedIn) { showSecretPage; } else { showLoginPage; } Requirements: · Perl


CGI::Session::Auth Related Software