Ahh good point, and I was missing that, but I still can't get it to work after adding the auth-protect.


Hmmm, what I want to do is this:

1.) Upon authentication, I store the user's email address in the <ID> tag in the doc the auth resource returns.
2.) My assumption until this point has been that the "authentication" context is now created in the session and stays there until the user logs out. Furthemore, I've assumed that I should be able to fetch the ID tag contents at any time while the user is logged in (the email address, in my case).


I'm now using auth-protect with the correct handler in the pipeline, but I still get the same error--context "authentication" can't be found.

From: "Carsten Ziegeler" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: RE: *****SPAM***** No "authentication" context?
Date: Wed, 3 Sep 2003 08:49:25 +0200

Hi,

you can only get information from the authentication context, if you
have the auth-protect action in the pipeline where you use the
transformer.

HTH
Carsten

> -----Original Message-----
> From: Sonny Sukumar [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 03, 2003 8:38 AM
> To: [EMAIL PROTECTED]
> Subject: *****SPAM***** No "authentication" context?
>
>
>
> After logging in using the Auth Framework, I try to use the session
> transformer to fetch the ID in the "authentication" context, but I get a
> ProcessingException saying:
>
> org.apache.cocoon.ProcessingException:
> SessionManager.streamContextFragment:
> Context 'authentication' not found.
>
> Here's my syntax:
> <session:getxml context="authentication" path="/authentication/ID"/>
>
> I made sure I really got logged in using auth-loggedIn. I also
> printed out
> all session atribute names right after logging in, and there's
> only 1 named
> "org.apache.cocoon.webapps.authentication.components.DefaultAuthen
> ticationManager/UserStatus"
>
> I thought the attribute was just supposed to be "authentication"? In any
> case, does that attribute name look correct to you?
>
> If my transformer parameters aren't correct, then the documentation is
> wrong. The doc I'm looking at it is here:
> http://cocoon.apache.org/2.1/developing/webapps/authentication.html
>
> Any ideas?
>
> Thanks,
>
> Sonny
>
> _________________________________________________________________
> Get MSN 8 and enjoy automatic e-mail virus protection.
> http://join.msn.com/?page=features/virus
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
Help protect your PC: Get a free online virus scan at McAfee.com. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to