cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gioni <g.gen...@cbim.it>
Subject Re: Access UserId in a JX page without Authentication-handler
Date Mon, 07 Feb 2005 08:17:25 GMT
Christoph Hermann wrote:

>Hello,
>
>on some pages i want to display a login-form wheter the User is logged 
>in or not.
>Therefore i need to know if the User is logged in. Is there a way i can 
>do this when the page i server is not enclosed in a 
> <map:act type="auth-protect">
>?
>
>I tried
>${cocoon.session.getAttribute("org.apache.cocoon.webapps.session.context.SessionContext").get("authentication").getValueOfNode(
"authentication/ID")} 
>and 
>${cocoon.session.getAttribute("org.apache.cocoon.webapps.session.context.SessionContext").get("authentication").getValueOfNode(
"ID")} 
>(found this with google) but none of these work.
>
>  
>
I use the contaioner authentication (with tomcat or jetty), and get the 
username in the flowscript simple using cocoon.request.getRemoteUser() 
this return the username when is called.

Bye Gioni


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


Mime
View raw message