Thank you Jens, but I have some doubts about this pipeline >From : "Jens Maukisch" [EMAIL PROTECTED] > > 2) customize the authentication resource, to use the existing > authentication framework. But Where > can I add the custom code that queries > my database? Do I Have to change only the AuthAction class? > This should help you: > http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=105289531706378&w=2 > > kind regards > Jens
This is the pipeline from the linked document: <!-- authentication --> <map:match pattern="vipresource-sunrise-authuser"> <map:generate src="vip/resources/sunrise-user.xml"/> <!-- SQL-Transformer --> <map:transform type="sql"> <map:parameter name="use-connection" value="user-database-connection"/> <map:parameter name="username" value="user"/> </map:transform> <map:transform src="vip/styles/sunrise-user.xsl"/> <map:serialize type="xml"/> </map:match> The XML document loaded by the generator contains the complete list of the users of the portal with all the information (from the Portal sample of Cocoon). If I want to replace the static xml document with an XSP that loads the same data from a database, what I have to load? 1) Do I have to select all the users of the portal everytime? (NO, I hope! What if I have 1000 or more users???) 2) In the case I can use request parameters I select from the database only the information about the current user, but this is possible only in the login step; when the user navigates internal pages of the portal I suppose I don't have the username/pasword in the request. So the doubt is: What I have to select from the database to create the XML <authentication><ID>...<ID/><authentication/>? With other words: my XSP has to select form database with which parameters?? I hope I have explained the problem in an understandable way ;-) Thank you for your answer! Bye, Nesto --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
