
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.
$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.