Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 80769 invoked from network); 30 Jan 2005 23:24:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 30 Jan 2005 23:24:25 -0000 Received: (qmail 83250 invoked by uid 500); 30 Jan 2005 23:24:20 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 83211 invoked by uid 500); 30 Jan 2005 23:24:20 -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 Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 83188 invoked by uid 99); 30 Jan 2005 23:24:20 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from server30169.uk2net.com (HELO server30169.uk2net.com) (83.170.75.212) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 30 Jan 2005 15:24:18 -0800 Received: from [10.0.1.2] (client-82-3-80-186.mant.adsl.virgin.net [82.3.80.186]) by server30169.uk2net.com (Postfix) with ESMTP id CE04EC0C03 for ; Sun, 30 Jan 2005 23:24:15 +0000 (GMT) Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <41F74BBF.8020209@4dconcept.fr> References: <41F74BBF.8020209@4dconcept.fr> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: quoted-printable From: Ellis Pritchard Subject: Re: [Flowscript] authentication Date: Sun, 30 Jan 2005 23:23:10 +0000 To: users@cocoon.apache.org X-Mailer: Apple Mail (2.619) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N The original URL before redirection to the login URI should be =20 appended as a parameter called "resource" to the redirect-to URI, the =20= AuthAction does this... i.e. in your flowscript/login action retrieve the parameter named =20 "resource" and redirect to this after successful login; note that the =20= URI is the complete URI, as retrieved by request,getRequestURI(): it is =20= not relative to the sitemap or the Cocoon servlet. Ellis. On 26 Jan 2005, at 07:50, Lionel Crine wrote: > In fact, my real question is : > > How do I redirect to the page I requested before logging in. > The authentication fw always redirect to the first page of the =20 > protected area. > > Chris Bentley wrote: > >> Hi Lionel, >> >> yes there is a samplein the blocks area, >> here is a typical url to the samples in your own cocoon 2.1.6 >> http://localhost:8888/samples/blocks/authentication-fw/flow/login >> This is authentication with flow >> >>> Lionel Crine schrieb: >>> >>> Hello, >>> >>> >>>> I want to make a page which test if the user is logged or not >> (easy). >> >>>> If not, I redirect him to the login page (easy) >>>> but once the user is logged in, I want to redirect him to the >>>> previous page he requested. >>>> >>>> >>>> Is there some samples in flowscript to do that ? >>>> >>> There is an Authentication Framework in Cocoon. >>> http://cocoon.apache.org/2.1/developing/webapps/authentication.html >>> >>> HTH >>> Christoph >>> >>> >>> >> >> www.boogaloos.de >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org >> For additional commands, e-mail: users-help@cocoon.apache.org >> >> > > -- =20 > Lionel CRINE > Ing=E9nieur Syst=E8mes documentaires > Soci=E9t=E9 : 4DConcept > 22 rue Etienne de Jouy 78353 JOUY EN JOSAS > Tel : 01.34.58.70.70 Fax : 01.39.46.06.90 > > = ------------------------------------------------------------=20= > --------- > 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