On Fri, 17 Sep 2004, Steinar Rune Eriksen wrote:
> OK, I solved it. I also had to wrap the pipeline into a auth-protect
> block, as well as using the following to get the component manager
>
> public String getUserId() throws Exception{
> org.apache.avalon.framework.component.ComponentManager cm=
> CocoonComponentManager.getSitemapComponentManager();
> SessionManager sessionManager = (SessionManager)cm.lookup(
> org.apache.cocoon.webapps.session.SessionManager.ROLE);
> String userLogin = sessionManager.getContextFragment( "authentication",
> "/authentication/ID").getFirstChild().getNodeValue();
> return userLogin;
> }
Can someone add this to the docs or as exmple code ? And ideally also with
another functional example of doing the same for an SSL cert ;-)
Dw.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]