[cgiapp] Re: CGI::Application::Plugin::Authentication posthook
Terrence Brannon
tbrannon at insuranceagents.com
Thu Feb 26 09:12:34 EST 2009
I just looked at the code for CGIapp::Plugin::Authentication and noticed
that it does not pass the authentication instance object to the driver.
This means that the generic driver cannot manipulate that object in the
authentication process or in a post-authentication process.
Here is the line in CGI::Application::Plugin::Authentication in which the
driver is called:
foreach my $driver ($self->drivers) {
if (my $username = $driver->verify_credentials(@credentials)) {
I would like to see the call to verify_credentials provide the
authentication object as well the cgiapp object.
Then it will be easy for me to store the user id in a subroutine written
using the generic driver.
in the meantime What I can do is subclass
CGI::Application::Plugin::Authentication and add a userid method similar to
the username method
On Wed, Feb 25, 2009 at 3:02 PM, Terrence Brannon <
tbrannon at insuranceagents.com> wrote:
> Hello, I am using CGI::Application::Plugin::Authentication and
> contemplating using CGI::Application::Plugin::Authorization.
>
> I would like some way of adding some things to $app->authen->store() after
> authenticating the user, and before any runmode actually runs.
>
> Since these things are particular to authentication, I have no need for
> doing them except when a user needs to authenticate.
>
> To be specific I want to put the user-id of the authenticated user in the
> session store.
>
>
>
More information about the cgiapp
mailing list