cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Pietschmann" <>
Subject AW: Retrieving AuthenticationContext from custom Action
Date Fri, 24 Dec 2004 19:20:31 GMT
Thanx alot and Merry Christmas, ;)

seems to work with the ContextManager.

Cheers, Stefan

-----Urspr√ľngliche Nachricht-----
Von: Carsten Ziegeler [] 
Gesendet: Freitag, 24. Dezember 2004 10:59
Betreff: RE: Retrieving AuthenticationContext from custom Action

Stefan Pietschmann wrote: 
> <SNIP/>
> My first question would be: 
> Which is the best way to obtain the authentication context? 
> Via the SessionManager, ContextManager.. or 
> AuthenticationContextProvider? Is there any striking difference?
> Second question of course: How do I get the context??
The best way is to use the ContextManager. The SessionManager is
a legacy component and the authenticationcontextprovider is an
internal component.

So, you fetch the context from the ContextManager like you did
in your sample code and then using getXML("/authentication")
you should get a DocumentFragment with the contents. Did
you check if the fragment has children?


View raw message