The code is very generic since it simply gets the userID from the HTTPServerRequest and doesn't make any reference to a specific SSO tool, just that the user has been authenticated.
I'd be happy to submit the code. It's quite heavily tied to LDAP too though, since this is where Dspace gets the other required user details (name, email address). This is why I started with copying the LDAP module rather than the arguably more similar implicit X509 module. Still, as you say it would be a good starting point for anyone who wants to implement an SSO based authentication module. I need to work on the code some more, and implement a new login page using the sitemap.xml (thanks for this) so I'll get a finished product and post it up. Alternatively/additionally, I could submit via github for review? Ian ------------ Ian Wellaway Senior System Support & Development Officer - Enterprise Applications (Wednesdays only) & Technical Developer, Open Exeter - Infrastructure Systems (Monday-Tuesday, Thursday-Friday) Exeter IT Room 54 Laver Building University of Exeter EX4 4QE UK tel +44 1392 722852 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of helix84 Sent: 03 December 2012 13:35 To: Wellaway, Ian Cc: Hilton Gibson; [email protected] Subject: Re: [Dspace-tech] Dspace with SSO - request.getRemoteUser On Mon, Dec 3, 2012 at 2:12 PM, Wellaway, Ian <[email protected]> wrote: > I’m pleased with the creation of the new module (I’ve called it > RemoteuserAnuthentication.java and added it to the stack in > authentication.cfg) but not so much having to hang on to the > ldap-login page since this crosses over with the LDAP modules. Is this something generic enough to be included in DSpace, so that other OpenSSO users could benefit from it? It's OK if it's not perfect, but someone else might use it as a starting point. > How do I create a new login page...RemoteUser-login, and use this instead? You didn't specify whether you're using JSPUI or XMLUI. JSPUI: https://github.com/DSpace/DSpace/blob/dspace-3.0/dspace-jspui/src/main/webapp/WEB-INF/web.xml#L328 https://github.com/DSpace/DSpace/blob/dspace-3.0/dspace-jspui/src/main/webapp/WEB-INF/web.xml#L630 XMLUI: https://github.com/DSpace/DSpace/blob/dspace-3.0/dspace-xmlui/src/main/resources/aspects/EPerson/sitemap.xmap#L177 Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: BUILD Helping you discover the best ways to construct your parallel projects. http://goparallel.sourceforge.net _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

