How to proceed ?
And then after i got this initial setup running, how would i have to call
for the userId ?
Is there something like appMan.getUserId() or similar ? Is there some
documentation about the
authentication-api available? and how the data is accessible from a
flowscript ?


Hi Hussayn,

I use the following code to access the currently authenticated User in flowscript:

var appUtil = cocoon.createObject('org.apache.cocoon.auth.ApplicationUtil');
   var user = appUtil.getUser();

The last call returns an instance of my User object which implements the org.apache.cocoon.auth.User interface. Using that interface you should be able to develop a specific User class for your application. A good starting point are Alessandro's examples [1].

HTH

Benjamin

[1] http://devel.alessandro.vincelli.name/item/28.html  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to