You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sy...@swisscom.com on 2003/11/17 10:18:27 UTC

Cocoon Portal: how to retrieve the user with XSP

Hello,

I'm using the Cocoon portal and I need to retrieve with XSP the username I enter at the authentication when I open an application from within the portal.

How could I retrieve this username?
Is this information always available?

Thanks
Regards
Sylvain

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


RE: Cocoon Portal: how to retrieve the user with XSP

Posted by Matthew Langham <ml...@s-und-n.de>.
Sylvain,

once the user is authenticated the information is stored in the session
context for that user and is always available.

See:
http://cocoon.apache.org/2.1/developing/webapps/authentication.html#Getting+
information+from+the+context

for information on reading the context using getxml.

Matthew


> -----Original Message-----
> From: Sylvain.Thevoz@swisscom.com [mailto:Sylvain.Thevoz@swisscom.com]
> Sent: Monday, November 17, 2003 10:18 AM
> To: users@cocoon.apache.org
> Subject: Cocoon Portal: how to retrieve the user with XSP
>
>
> Hello,
>
> I'm using the Cocoon portal and I need to retrieve with XSP the
> username I enter at the authentication when I open an application
> from within the portal.
>
> How could I retrieve this username?
> Is this information always available?
>
> Thanks
> Regards
> Sylvain
>
> ---------------------------------------------------------------------
> 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


Re: Cocoon Portal: how to retrieve the user with XSP

Posted by Ashish Kumar <ng...@iitr.ernet.in>.
hi there,
       
   I think u r looking for <xsp-request:get-remote-user> element, it
should work for u...
          there r many other elements available that u can use to retrieve
info. like, for session, xsp-request:get-requested-session-id etc....
have a look at the http://localhost:8080/cocoon/documents/userdocs/xsp/request.html
page on the comp. u have the cocoon running....

cheers.

----------------------------------------------------------------
Sleight of hand and twist of fate,
On a bed of nails she makes me wait...

ASHISH KUMAR,
B. TECH. 3rd YR.
IIT ROORKEE,
INDIA. 
-----------------------------------------------------------------

On Mon, 17 Nov 2003 Sylvain.Thevoz@swisscom.com wrote:

> Hello,
> 
> I'm using the Cocoon portal and I need to retrieve with XSP the username I enter at the authentication when I open an application from within the portal.
> 
> How could I retrieve this username?
> Is this information always available?
> 
> Thanks
> Regards
> Sylvain
> 
> ---------------------------------------------------------------------
> 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