Re: Perl Authorization handler called before authentication handler

2015-06-26 Thread Jie Gao
* Lathan Bidwell wrote: > Date: Fri, 12 Sep 2014 12:14:35 -0400 > From: Lathan Bidwell > To: modperl@perl.apache.org > Subject: Perl Authorization handler called before authentication handler Not sure if you still need this, but my findings are it is the correct behaviour under

Re: Perl Authorization handler called before authentication handler

2014-09-14 Thread Lathan Bidwell
>On Fri, Sep 12, 2014 at 02:25:49PM -0400, Lathan Bidwell wrote: > >> The documentation for the AuthType field does not seem to give examples > for > >> custom auth handlers. > >> > >> The AuthType I put in is the package name that has the auth subroutines > in > >> it. > >> > >> This is pulled fr

Re: Perl Authorization handler called before authentication handler

2014-09-12 Thread 'lesleyb'
On Fri, Sep 12, 2014 at 02:25:49PM -0400, Lathan Bidwell wrote: > The documentation for the AuthType field does not seem to give examples for > custom auth handlers. > > The AuthType I put in is the package name that has the auth subroutines in > it. > > This is pulled from other examples, includ

Re: Perl Authorization handler called before authentication handler

2014-09-12 Thread Lathan Bidwell
The documentation for the AuthType field does not seem to give examples for custom auth handlers. The AuthType I put in is the package name that has the auth subroutines in it. This is pulled from other examples, including Apache2::AuthCookie where they set it to their module name. None of the o

Re: Perl Authorization handler called before authentication handler

2014-09-12 Thread Lathan Bidwell
1) I am sure that the subroutine is called, because I have warn statements in each subroutine. I can see in the log that authorization24 is called before authentication24. 2) The url I've been testing is /services/jacl/members/hi.html @DirectoryMatch: hm, I suppose it might be slightly faster, bu

Re: Perl Authorization handler called before authentication handler

2014-09-12 Thread 'lesleyb'
On Fri, Sep 12, 2014 at 12:14:35PM -0400, Lathan Bidwell wrote: > 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 memb

Re: Perl Authorization handler called before authentication handler

2014-09-12 Thread André Warnier
Lathan Bidwell wrote: 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

Perl Authorization handler called before authentication handler

2014-09-12 Thread Lathan Bidwell
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 DirectoryIndex disab

Re: Authentication handler

2008-12-18 Thread Bruce Johnson
On Dec 18, 2008, at 3:31 PM, André Warnier wrote: Bruce Johnson wrote: I'm looking at the code at the modperl.com site <http://www.modperl.com/book/chapters/ch6.html > ('Authenticating against a database') as I need to write an authentication handler for our site.

Re: Authentication handler

2008-12-18 Thread André Warnier
Bruce Johnson wrote: I'm looking at the code at the modperl.com site <http://www.modperl.com/book/chapters/ch6.html> ('Authenticating against a database') as I need to write an authentication handler for our site. This is part of the sample code: # file: Apache/GateKeep

Authentication handler

2008-12-18 Thread Bruce Johnson
I'm looking at the code at the modperl.com site <http://www.modperl.com/book/chapters/ch6.html > ('Authenticating against a database') as I need to write an authentication handler for our site. This is part of the sample code: # file: Apache/GateKeeper.pm use strict; use

Re: Perl Authentication Handler and Cookie Issue

2007-02-21 Thread Sumit Shah
Thanks Robert. That did the trick. Sumit Robert Landrum wrote: Sumit Shah wrote: I printed out the contents of the Cookie attribute in the request header and I can see the cookie present in the header. I read all the contents into a hash and then try to check for its existence. The if(exist

Re: Perl Authentication Handler and Cookie Issue

2007-02-20 Thread Robert Landrum
Sumit Shah wrote: I printed out the contents of the Cookie attribute in the request header and I can see the cookie present in the header. I read all the contents into a hash and then try to check for its existence. The if(exists($hashMap{'SSOTokenID'})) condition fails. Does it have anything

Re: Perl Authentication Handler and Cookie Issue

2007-02-20 Thread Perrin Harkins
On 2/20/07, Sumit Shah <[EMAIL PROTECTED]> wrote: I printed out the contents of the Cookie attribute in the request header and I can see the cookie present in the header. I read all the contents into a hash and then try to check for its existence. The if(exists($hashMap{'SSOTokenID'})) condition

Re: Perl Authentication Handler and Cookie Issue

2007-02-20 Thread Sumit Shah
I printed out the contents of the Cookie attribute in the request header and I can see the cookie present in the header. I read all the contents into a hash and then try to check for its existence. The if(exists($hashMap{'SSOTokenID'})) condition fails. Does it have anything to do with data typ

Re: Perl Authentication Handler and Cookie Issue

2007-02-20 Thread Sumit Shah
The jsp pages are also handled by JSERV. I am not sure if JSERV is kicking in and consuming the headers. Is there a way to check which module is being executed and in what order? Thanks Sumit Michael Peters wrote: Sumit Shah wrote: Thanks. Yes, my handler gets invoked when I set it up as

Re: Perl Authentication Handler and Cookie Issue

2007-02-20 Thread Michael Peters
Sumit Shah wrote: > Thanks. Yes, my handler gets invoked when I set it up as > PerlAccessHandler or PerlAuthenHandler but does not fetch any cookies. I > am not sure if it has anything to do with the requests (.jsp files) its > handling. My guess is that something else is running first and consu

Re: Perl Authentication Handler and Cookie Issue

2007-02-20 Thread Sumit Shah
Thanks. Yes, my handler gets invoked when I set it up as PerlAccessHandler or PerlAuthenHandler but does not fetch any cookies. I am not sure if it has anything to do with the requests (.jsp files) its handling. I will try to dump the headers and see what it gets. Thanks Sumit Perrin Harkins

Re: Perl Authentication Handler and Cookie Issue

2007-02-20 Thread Perrin Harkins
On 2/20/07, Sumit Shah <[EMAIL PROTECTED]> wrote: I did a small test to see if I can fetch the cookies without using PerlAccessHandler and PerlAuthenHandler. So, you're saying that CGI::Cookie works for you from the PerlHandler phase but not from the PerlAccessHandler phase. And I assume you'r

Re: Perl Authentication Handler and Cookie Issue

2007-02-20 Thread Rafael Caceres
. But the handler > > still fails to fetch the cookies. The browser does pass the cookies. I > > can see them in IEHTTPHeaders. I would appreciate if someone could let > > me know why this could happen? > > > > Thanks > > Sumit > > > > Rober

Re: Perl Authentication Handler and Cookie Issue

2007-02-20 Thread Sumit Shah
wrote: Sumit Shah wrote: Hello, I have a Mod Perl authentication handler and it needs to retrieve the session id from a cookie. It is unable to retrieve any cookies and I get the following error. It does not even print any of the cookies. I would appreciate any help with this. my $token

Re: Perl Authentication Handler and Cookie Issue

2007-02-20 Thread Sumit Shah
Shah wrote: Hello, I have a Mod Perl authentication handler and it needs to retrieve the session id from a cookie. It is unable to retrieve any cookies and I get the following error. It does not even print any of the cookies. I would appreciate any help with this. my $token = $cookies

Re: Perl Authentication Handler and Cookie Issue

2007-02-16 Thread Robert Landrum
Sumit Shah wrote: Hello, I have a Mod Perl authentication handler and it needs to retrieve the session id from a cookie. It is unable to retrieve any cookies and I get the following error. It does not even print any of the cookies. I would appreciate any help with this. my $token

Re: Perl Authentication Handler and Cookie Issue

2007-02-16 Thread Sumit Shah
Sumit Michael Peters wrote: Sumit Shah wrote: Hello, I have a Mod Perl authentication handler and it needs to retrieve the session id from a cookie. It is unable to retrieve any cookies and I get the following error. It does not even print any of the cookies. I would appreciate any help

Re: Perl Authentication Handler and Cookie Issue

2007-02-16 Thread Michael Peters
Sumit Shah wrote: > Hello, > > I have a Mod Perl authentication handler and it needs to retrieve the > session id from a cookie. It is unable to retrieve any cookies and I get > the following error. It does not even print any of the cookies. I would > appreciate any help with

Perl Authentication Handler and Cookie Issue

2007-02-16 Thread Sumit Shah
Hello, I have a Mod Perl authentication handler and it needs to retrieve the session id from a cookie. It is unable to retrieve any cookies and I get the following error. It does not even print any of the cookies. I would appreciate any help with this. Can't call method "va

mod_perl Authentication handler / multiple times

2007-01-24 Thread Tracy12
Why does the Authentication handler been called many times unnecessarily for a url pattern like (http://localhost/test), Is there any way to ignore within the handler it self. Is it advisable to use $r->is_initial_req; and return OK. . -- View this message in context: h