Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 39496 invoked from network); 19 May 2005 07:58:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 May 2005 07:58:57 -0000 Received: (qmail 13690 invoked by uid 500); 19 May 2005 07:54:30 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 13645 invoked by uid 500); 19 May 2005 07:54:30 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 13596 invoked by uid 99); 19 May 2005 07:54:28 -0000 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=RCVD_IN_NJABL_PROXY X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from mta1.siol.net (HELO mta1.siol.net) (193.189.160.40) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 19 May 2005 00:54:26 -0700 Received: from edge1.siol.net ([10.10.10.210]) by mta1.siol.net with ESMTP id <20050519075227.RPCM20756.mta1.siol.net@edge1.siol.net> for ; Thu, 19 May 2005 09:52:27 +0200 Received: from matjaz ([193.77.18.97]) by edge1.siol.net with SMTP id <20050519075227.SFIA13274.edge1.siol.net@matjaz> for ; Thu, 19 May 2005 09:52:27 +0200 Message-ID: <002d01c55c47$b3879dd0$6400a8c0@matjaz> From: "WeeZard" To: References: Subject: Re: Auth-fw, can't get Session context Date: Thu, 19 May 2005 09:52:25 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I had the same problem, just yesterday, and I found out, that in order the session to work, you have to wrap (every request) pipeline auth-protect action, like this (see http://cocoon.apache.org/2.1/developing/webapps/authentication.html): ... your pipeline ... around every pipeline that uses authentication context (I think internal pipelines don't need to be wraped). Don't forget to wrap your continuation pipeline, like this: Of course, you will have to have 2 continuation pipelines, one for protected and one for unprotected cform pages. Hope it helps Weez ----- Original Message ----- From: "Stavros Kounis" To: Sent: Thursday, May 19, 2005 8:06 AM Subject: Auth-fw, can't get Session context hi all i try to use Auth-FW. i have choose to create one just like the flow based in cocoon's samples. The auth process work fine (i can login log-out etc) but i can not get loged-in user's information. I have try the code snippet from AuthFWWithFlow wiki page [1] .... var contextMan = cocoon.getComponent(Packages.org.apache.cocoon.webapps.session.ContextManager.ROLE); var authContext = contextMan.getContext("authentication"); var userFrag = authContext.getXML("/authentication/ID"); var username = Packages.org.apache.cocoon.xml.dom.DOMUtil.getValueOfNode(userFrag); ... this code return NULL at contextMan.getContext("authentication"). I have to note that when i add this snippet at original cocoon's sample work fine. Did anyone give me a hint where i have to look for? Is it possible in my case context name to be different than "authentication" or is something else i miss? regards --stavros [1]: http://wiki.apache.org/cocoon/AuthFWWithFlow -- Stavros Kounis Osmosis networks & consulting http://tools.osmosis.gr/blog http://www.osmosis.gr --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org