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";
20 return if ref($cursor) ne "HASH";
22 $cursor = $cursor->{$_};
36 Catalyst::Plugin::Authentication::User - Base class for user objects.
40 package MyStore::User;
41 use base qw/Catalyst::Plugin::Authentication::User/;
45 This is the base class for authenticated
53 A unique ID by which a user can be retrieved from the store.
57 Should return a class name that can be used to refetch the user using it's
62 An introspection method used to determine what features a user object has, to support credential and authorization plugins.