| Net-Google-Calendar-Server documentation | Contained in the Net-Google-Calendar-Server distribution. |
Net::Google::Calendar::Server::Auth::Dummy - the most basic authentication module for Net::Google::Calendar::Server
Return a validation token.
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;