package Catalyst::Authentication::User::AuthTkt; use warnings; use strict; use base qw( Catalyst::Authentication::User ); __PACKAGE__->mk_accessors(qw( data ticket )); our $VERSION = '0.11'; =head1 NAME Catalyst::Authentication::User::AuthTkt - shim for Apache::AuthTkt =head1 DESCRIPTION This module implements the Catalyst::Plugin::Authentication API for Apache::AuthTkt. See Catalyst::Authentication::AuthTkt for complete user documentation. =head1 METHODS =cut =head2 new( I ) Returns a new User object. =head2 data Returns whatever arbitrary data was stored in the AuthTkt. =head2 ticket Get/set the ticket data. =head2 roles Returns an array for any tokens stored in the AuthTkt. =cut sub roles { my $self = shift; return @{ $self->{tokens} }; } =head2 id Returns the user's id (username). =cut sub id { $_[0]->{id} } my %features = ( session => 1, roles => { self_check => 0 }, ); =head2 supported_features Returns hashref of features this class implements. =cut sub supported_features { my $self = shift; return \%features; } =head1 AUTHOR Peter Karman, C<< >> =head1 BUGS Please report any bugs or feature requests to C, or through the web interface at L. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. =head1 SUPPORT You can find documentation for this module with the perldoc command. perldoc Catalyst::Authentication::AuthTkt You can also look for information at: =over 4 =item * AnnoCPAN: Annotated CPAN documentation L =item * CPAN Ratings L =item * RT: CPAN's request tracker L =item * Search CPAN L =back =head1 ACKNOWLEDGEMENTS The Minnesota Supercomputing Institute C<< http://www.msi.umn.edu/ >> sponsored the development of this software. =head1 COPYRIGHT & LICENSE Copyright 2008 by the Regents of the University of Minnesota. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut 1; # End of Catalyst::Authentication::AuthTkt