The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Authen::Simple::PlugAuth - Simple PlugAuth authentication

VERSION

version 0.02

SYNOPSIS

 use Authen::Simple::PlugAuth;
 
 my $auth = Authen::Simple::PlugAuth->new(
   url => 'http://localhost:3000/',
 );
 
 if($auth->authenticate($username, $password)) {
   # successfull authentication
 }

DESCRIPTION

Authenticate against a PlugAuth server through the Authen::Simple framework.

ATTRIBUTES

url

 my $url = $auth->url;

The URL of the PlugAuth server to connect to.

METHODS

authenticate

 my $bool = $auth->authenticate( $username, $password )

Returns true on success and false on failure.

SEE ALSO

Authen::Simple, PlugAuth, PlugAuth::Client.

AUTHOR

Graham Ollis <plicease@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Graham Ollis.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.