Hi,
Thanks for that, I thought this was the case but thought I’d put the question out there to see what others had done.
For adding this functionality I was not going to use the UserSession class but will re-visit that to see if it’s a cleaner approach.
I was looking at another mechanism via HttpServletRequest to add cookies, by extending the beginStream() method to allow the addition of cookies. I was thinking of packaging the cookies as child elements of the XML response root node from the service under an element called “cookies” and then strip them out in ServiceManager.dispatchOutput() before it called the writeDebug() method. I was hoping I didn’t need to touch the Jeeves code but looks like I will have to for SSO enablement.
The authentication SSO implementation used by my other apps running on tomcat is by invocation of the form action j_security_check. Has anyone integrated this into the Geonetwork application?
Thx,
Kevin
From: Mathieu Coudert [mailto:mcoudert@anonymised.com]
Sent: Thursday, 24 January 2008 19:34 PM
To: Kevin Gunn
Cc: geonetwork-devel@anonymised.comourceforge.net
Subject: Re: [GeoNetwork-devel] How can I set a cookie via a Jeeves Service implementation?
Hi Kevin,
I think you will need to modify the UserSession in jeeves.
Actually Jeeves does not permit to get or to put new attribute in your HttpSession.
I guess you need to implement a new method in UserSession Class in Jeeves to do it.
I use CAS authentication and for this I implemented a new method to get my CAS attribute in HttpSession. I called it getHttpSessionAttr().
Feel free to ask for more details,
Cheers,
Mathieu
On Jan 24, 2008 7:33 AM, Kevin Gunn <k.gunn@anonymised.com> wrote:
Hi All,
I have a custom login service and would like to set some cookies in the
response for SSO purposes. How can I set cookies in the servlet response
from within a Jeeves Service?
Thx
Kevin
The information contained in this communication is for the use of the
individual or entity to whom it is addressed, and may contain
information which is the subject of legal privilege and/or copyright.
If you have received this communication in error, please notify the
sender by return E-Mail and delete the transmission, together with any
attachments, from your system. Thank you.
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
–
Mathieu Coudert
mcoudert@anonymised.com
------------------------------------------------------------------------
The information contained in this communication is for the use of the
individual or entity to whom it is addressed, and may contain
information which is the subject of legal privilege and/or copyright.
If you have received this communication in error, please notify the
sender by return E-Mail and delete the transmission, together with any
attachments, from your system. Thank you.
-------------------------------------------------------------------------