Net::Google::Calendar::Server::Auth::Dummy - the most basic authentication module for Net::Google::Calendar::Server


Net-Google-Calendar-Server documentation Contained in the Net-Google-Calendar-Server distribution.

Index


Code Index:

NAME

Top

Net::Google::Calendar::Server::Auth::Dummy - the most basic authentication module for Net::Google::Calendar::Server

METHODS

Top

validate <email> <pass>

Return a validation token.

auth <key>

Return 1 if the authetication key is correct.


Net-Google-Calendar-Server documentation Contained in the Net-Google-Calendar-Server distribution.
package Net::Google::Calendar::Server::Auth::Dummy;

use strict;
use base qw(Net::Google::Calendar::Server::Auth);
use Digest::MD5 qw(md5_hex);

sub validate {
    my $self  = shift;
    my $email = shift;
    my $pass  = shift;

    return md5_hex("$email:$pass"); 
}


sub auth {
    my $self = shift;
    my $key  = shift;

    return 1;

}

sub magic_cookie_auth {
	my $self   = shift;
	my $email  = shift;
	my $cookie = shift;
	
	return 1;
}

1;