|
Apache::Wyrd::Interfaces::GetUser - Get User data from Auth service/Auth Cookies |
Apache::Wyrd::Interfaces::GetUser - Get User data from Auth service/Auth Cookies
[in a subclass of Apache::Wyrd::Handler]
sub process {
my ($self) =@_;
$self->{init}->{user} = $self->user('BASENAME::User');
return FORBIDDEN
unless ($self->check_auth($self->{init}->{user}));
return undef;
}
Provides a User method that will check both the Apache notes table and the
available cookies for a User created by the Apache::Wyrd::Services::Auth
module. This is needed by any handler which will need to be informed as to the
findings of a stacked Apache::Wyrd::Services::Auth handler.
But this method is not limited only to stacked Auth handlers. When the AuthPath
SetPerlVar directive of the Apache::Wyrd::Services::Auth module is beyond the
scope of the area where the authorization was checked (in other words, the
cookie is returned to areas of the site where authorization is not required),
this interface is useful for finding what user is browsing the site.
The SYNOPSIS shows the typical use of this interface in a subclass of
Apache::Wyrd::Handler.
(format: (returns) name (arguments after self))
user (scalar)
UNKNOWN
Barry King <wyrd@nospam.wyrdwright.com>
Copyright 2002-2004 Wyrdwright, Inc. and licensed under the GNU GPL.
See LICENSE under the documentation for Apache::Wyrd.
|
Apache::Wyrd::Interfaces::GetUser - Get User data from Auth service/Auth Cookies |