3 package Catalyst::Plugin::Authentication::User;
8 sub id { die "virtual" }
10 sub store { die "virtual" }
13 my ( $self, @spec ) = @_;
15 my $cursor = $self->supported_features;
17 # traverse the feature list,
19 die "bad feature spec: @spec" if ref($cursor) ne "HASH";
21 $cursor = $cursor->{$_};
35 Catalyst::Plugin::Authentication::User - Base class for user objects.
39 package MyStore::User;
40 use base qw/Catalyst::Plugin::Authentication::User/;
44 This is the base class for authenticated
52 A unique ID by which a user can be retrieved from the store.
56 Should return a class name that can be used to refetch the user using it's
61 An introspection method used to determine what features a user object has, to support credential and authorization plugins.