Apache::AuthCookie and HTML::Mason

[prev] [thread] [next] [Date index for 2004/12/11]

From: Steve Smith
Subject: Apache::AuthCookie and HTML::Mason
Date: 16:36 on 11 Dec 2004
Hi there, 

I am using Apache/1.3.22 (Unix) with mod_perl/1.26 and have just installed the latest Apache::AuthCookie (3.06) and am building a custom AuthCookieHandler building on an example from the Mason Book.

The Mason login form is being displayed correctly by Apache when accessing the required resource, but I can't seem to actually authenticate properly.  The initial reason I get back from Apache::AuthCookie via $r->prev->subprocess_env("AuthCookieReason") is the expected "no_cookie".  So, I then try to log in passing the required credential_ params back to the custom AuthCookieHandler and get back from Apache::AuthCookie "bad_cookie".

So from the preamble to the newbie question!  : 

How do I go about getting more information back to my login form from Apache using mod_perl in my custom AuthCookieHandler as to what the "bad_cookie" message actually means without trying to decipher much of the magic in Apache::AuthCookie?

The Apache::AuthCookie code says the following where "bad_cookie" is set : 

      # There was a session key set, but it's invalid for some reason. So,
      # remove it from the client now so when the credential data is posted
      # we act just like it's a new session starting.

and the pod says : 

      # The cookie the user presented is invalid.  Typically this means that the user
      # is not allowed access to the given page.

Any help appreciated. I hope the question makes sense.

Thanks,

- Steve
http://www.zepphy.com/

        -- 
        Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Apache::AuthCookie and HTML::Mason
Steve Smith 16:36 on 11 Dec 2004

Re: Apache::AuthCookie and HTML::Mason
Michael J Schout 06:02 on 13 Dec 2004

Generated at 11:27 on 21 Dec 2004 by mariachi v0.52