OpenInteract::Auth

OpenInteract::Auth is a Perl module that allows you to authenticate the user object and create its groups.
Download

OpenInteract::Auth Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Chris Winters
  • Publisher web site:
  • http://search.cpan.org/~cwinters/SPOPS-0.87/SPOPS/SQLInterface.pm

OpenInteract::Auth Tags


OpenInteract::Auth Description

OpenInteract::Auth is a Perl module that allows you to authenticate the user object and create its groups. OpenInteract::Auth is a Perl module that allows you to authenticate the user object and create its groups.SYNOPSIS # Authenticate the user based on the session information # or the login information OpenInteract::Auth->user; # Fetch the groups for the logged-in user OpenInteract::Auth->group; # See whether this user is an administrator OpenInteract::Auth->is_admin; # Run custom methods as defined in the server configuration OpenInteract::Auth->custom_handler;This class/interface is responsible for authenticating users to the system and other authentication checks. If you have custom authentication needs you can specify your class in the server configuration and create your own or subclass this class and use pieces of it as needed.This class tries to create a user in one of two ways:1. Find the user_id in their session information and create a user object from it.2. Find the $LOGIN_FIELD and $PASSWORD_FIELD arguments passed in via GET/POST and try to create a user with that login name and check the password.If either of these is successful, then we create a user object and put it into: $R->{auth}{user}where it can be retrieved by all other handlers, modules, etc. Otherwise we create a 'transient' (not serialized) user object for every request via the create_nologin_user() method, which you can override by subclassing this class.The class also creates an arrayref of groups the user belongs to as long as the user is a valid one. Requirements: · Perl


OpenInteract::Auth Related Software