Smolder::AuthInfo
Utility class to manage authentication tickets.
Returns a new object.
my $ai = Smolder::AuthInfo->new();
Return a new auth ticket given an id and groups.
$ai->ticket( id => $dev->id, groups => [qw(developer admin)], );
Parse an auth ticket. The user's id and groups are then available in the id() and groups() methods if the ticket was not tampered with.
id()
groups()
$ai->parse($string); my $id = $at->id; my $groups = $at->groups;
Returns an array reference containing the groups of the most recently parsed auth ticket.
Returns the id of the most recently parsed auth ticket.
To install Smolder, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Smolder
CPAN shell
perl -MCPAN -e shell install Smolder
For more information on module installation, please visit the detailed CPAN module installation guide.