cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johnson <john...@erp.tw>
Subject Re: How to get user id in 2.1.10 portal
Date Tue, 20 Mar 2007 06:08:22 GMT
I'm using the sample one.

I found This portal sample using the same user profile sunrise-user.xml.

the sitemap and others are the same to old portal.

so what's the authentication in 2.1.10 portal.

johnson

Ralph Goers 提到:
> Are you using the sample configuration or your own? I believe the
> samples don't use authentication-fw anymore.
>
> johnson wrote:
>   
>> HI!
>>
>> I've application in 2.1.10 portal, I can get the user id by flow in
>> 2.1.7 with this code
>>
>> var contextMan =
>> cocoon.getComponent(Packages.org.apache.cocoon.webapps.session.ContextManager.ROLE);
>> var authContext = contextMan.getContext("authentication");
>> var userFrag = authContext.getXML("/authentication/ID");
>> var user =
>> Packages.org.apache.cocoon.xml.dom.DOMUtil.getValueOfNode(userFrag);
>>
>> but in 2.1.10 it's not work, what's changed.
>>
>> Best Regards
>>
>> johsnon
>>
>> ---------------------------------------------------------------------
>> 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
>   


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


Mime
View raw message