SYNOPSIS
# To send a user to login:
use Hey::heyPass;
$heyPass = Hey::heyPass->new($yourSiteId, $yourSiteKey);
$login = $heyPass->beginSession({
successUrl => "http://$ENV{HTTP_HOST}/loginSuccess.cgi?sessionId=%s",
failureUrl => "http://$ENV{HTTP_HOST}/loginFailure.cgi?sessionId=%s",
cancelUrl => "http://$ENV{HTTP_HOST}/loginCancel.cgi?sessionId=%s"
});
print "Location: $login->{loginUrl}nn";
# To logout the user:
use Hey::heyPass;
$heyPass = Hey::heyPass->new($yourSiteId, $yourSiteKey);
$heyPass->endSession($sessionId);
# To retrieve the session data of the user:
use Hey::heyPass;
$heyPass = Hey::heyPass->new($yourSiteId, $yourSiteKey);
$session = $heyPass->getSession($sessionId);
use Data::Dumper;
print Dumper($session);
Documentation: https://heypass.hey.nu/interface/guestdocs/
If you want to have a heyPass siteId/siteKey for your application, please check to see if there is an automated way to do this (not yet at time of writing). If there still isn't, contact me (Dusty Wilson ) and I will get you started.
Product's homepage
Requirements:
· LWP::UserAgent
· XML::Simple
· Crypt::SSLeay
· Perl