App::Authentication - Interface for authentication and authorization


App-Context documentation Contained in the App-Context distribution.

Index


Code Index:

NAME

Top

App::Authentication - Interface for authentication and authorization

SYNOPSIS

Top

    use App;

    $context = App->context();
    $authentication = $context->service("Authentication");  # or ...
    $authentication = $context->authentication();

    if ($authentication->validate_password($username, $password)) {
       ...
    }

DESCRIPTION

Top

An Authentication service is a means by which a user may be authenticated.

Class Group: Authentication

Top

The following classes might be a part of the Authentication Class Group.

* Class: App::Authentication
* Class: App::Authentication::Passwd
* Class: App::Authentication::DBI
* Class: App::Authentication::Repository
* Class: App::Authentication::SMB
* Class: App::Authentication::LDAP
* Class: App::Authentication::Radius
* Class: App::Authentication::Kerberos
* Class: App::Authentication::SSL
* Class: App::Authentication::DCE

Class: App::Authentication

Top

A Authentication service is a means by which a user may be authenticated and by which he may be authorized to perform specific operations.

 * Throws: App::Exception::Authentication
 * Since:  0.01

Class Design

...

Constructor Methods:

Top

new()

The constructor is inherited from App::Service|App::Service/"new()".

Public Methods:

Top

validate_password()

    * Signature: $username = $auth->validate_password();
    * Param:     void
    * Return:    $username        string
    * Throws:    App::Exception::Authentication
    * Since:     0.01

    Sample Usage:

    $username = $auth->validate_password();

service_type()

    * Signature: $service_type = App::Authentication->service_type();
    * Param:     void
    * Return:    $service_type  string
    * Since:     0.01

    $service_type = $authen->service_type();

Returns 'Authentication';

ACKNOWLEDGEMENTS

Top

 * Author:  Stephen Adkins <spadkins@gmail.com>
 * License: This is free software. It is licensed under the same terms as Perl itself.

SEE ALSO

Top

App::Context|App::Context, App::Service|App::Service


App-Context documentation Contained in the App-Context distribution.
#############################################################################
## $Id: Authentication.pm 9850 2007-08-17 16:09:40Z spadkins $
#############################################################################

package App::Authentication;
$VERSION = (q$Revision: 9850 $ =~ /(\d[\d\.]*)/)[0];  # VERSION numbers generated by svn

use App;
use App::Service;
@ISA = ( "App::Service" );

use strict;

#############################################################################
# CLASS GROUP
#############################################################################

#############################################################################
# CLASS
#############################################################################

#############################################################################
# CONSTRUCTOR METHODS
#############################################################################

#############################################################################
# new()
#############################################################################

#############################################################################
# PUBLIC METHODS
#############################################################################

#############################################################################
# validate_password()
#############################################################################

sub validate_password {
    my ($self, $username, $password) = @_;
    return(1);
}

#############################################################################
# Method: service_type()
#############################################################################

sub service_type () { 'Authentication'; }

1;