cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aurélien DEHAY ...@zorel.org>
Subject Re: Autologin & auth-fw
Date Thu, 17 Feb 2005 12:23:48 GMT
Christoph Hermann wrote:
> Aurélien DEHAY schrieb:
> 
> Hello,
> 
> 
>>I'm using auth-fw for user authentication. I'd like to autologin user
>>who comming with a specific cookie. I supposed it is possible, but I
>>don't how to do it, as I can't create authentication context from,
>>for example, the session context transformer.
>>
>>I can store user/cookie pair in my SQL database, but how can I do the
>>autologin stuff?
> 
> 
> In your authentication handler add a check for the Cookie and return a 
> specific userid.

How do I do that? When a resource is protected and the user is not 
authenticated, I redirect him to a "login" page (with the redirect-to 
element in the handler element), but the authentication is made with the 
authentication element. I don't really see where to put the check of the 
cookie.

Rgds.

> 
> HTH
> Christoph


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message