Perl Authorization handler called before authentication handler

Lathan Bidwell <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <CAOqPvqiiZvA0SXS0UMZFahNjFvdZKW2UCm7beiqUpvJjMh8bPg@mail.gmail.com>
I have looked all around apache's documentation on how to upgrade from 2.2
to 2.4, but they don't include much about using PerlAddAuthzProvider or
PerlAuthenHandler.

I have this config section:

PerlAddAuthzProvider membersuser Application::User::Members->authorize24

<DirectoryMatch ^.*/members/>
        DirectoryIndex disabled
        PerlAuthenHandler       Application::User::Members->authenticate24
        #PerlAuthenHandler      Application::User::Members::authenticate24

        AuthType        Application::User::Members
        AuthName        "Members"

        Require membersuser testing123
</DirectoryMatch>


But for some reason, my authorize24 subroutine is being called before my
authenticate24 subroutine.

I have simplified those 2 subroutines down to printing debugging info to
the error log, (the authen sub sets $r->user('testing')), but I cannot
figure out why the handlers are called in the wrong order.

Lathan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.