| Authen-PAAS documentation | view source | Contained in the Authen-PAAS distribution. |
Authen::PAAS::LoginModule - a pluggable authentication module
use Authen::PAAS::LoginModule; my $result = $module->login($subject, \%callbacks);
This module provides the API for authenticating a subject for the purposes of session login. It will be subclassed to provide the implementations of different authentication schemes.
Creates a new login modules. The flags parameter should be one of the
keywords sufficient, requisite, required and optional. The
options parameter is a hash reference containing sub-class specific
configuration options.
Retrieves the value of the configuration option identified by
the $name parameter. If the named configuration option is
not set, then the $default value is returned.
Retrieves the flags for the module, one of the keywords sufficient,
requisite, required and optional.
Attempt to login using authentication data obtained
from the callbacks, if successful, adding principals
and credentials to the subject. The $callbacks
parameter is a hash reference, whose keys are the
names of authentication tokes, and values are instances
of th Authen::PAAS::Callback class. If successful,
this method must return a true value, otherwise a false
value. This method must be implemented by subclasses.
Attempt to logout a subject, by removing any principals
anc credentials added during the login method.
This method must be implemented by subclasses.
Daniel Berrange <dan@berrange.com>
Copyright (C) 2004-2006 Daniel Berrange
| Authen-PAAS documentation | view source | Contained in the Authen-PAAS distribution. |