Hey::heyPass - Interface with heyPass Centralized Authentication System
# 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}\n\n"; # 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 <cpan-heypass@dusty.hey.nu>) and I will get you started.
LWP::UserAgent XML::Simple Crypt::SSLeay
A big thank you goes out to all of our members at hey.nu Network who have helped us test heyPass throughly. A special thank you goes to ssba for his testing and early adoption of heyPass in his projects. And of course, thank you to the authors and contributors of LWP, XML::Simple, Crypt::SSLeay, and all dependent projects for making this module so easy to make. If it weren't for them, I would have had to actually write real code to have done this. Thanks!
heyPass Site: https://heypass.hey.nu/ (doubtfully useful in its current state)
Dusty Wilson, <cpan-heypass@dusty.hey.nu>
Copyright 2005 by Dusty Wilson, hey.nu Network Community Services
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Hey::heyPass, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Hey::heyPass
CPAN shell
perl -MCPAN -e shell install Hey::heyPass
For more information on module installation, please visit the detailed CPAN module installation guide.