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].
Thank you very much for this information. That worked out of the box.
I only needed to tweek my setup a bit for my purposes:
I added this to my test-application context : (don't worry,
the final application will use another authentication class ;-)
Take a look at the auth package's source. You'll find some useful
interfaces and classes there. The rest should be a bit of spring
configuration and a few lines of code :-)
Good luck / Viel Glück
Benjamin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]