Hi Jose,
It seems like there are few options (that come to my mind):
(1) The more "official" way: Create your own XMLUI Aspect which can
handle the Cosign authentication. This would be similar to the existing
EPerson Aspect (see the org.dspace.app.xmlui.aspect.eperson.* classes)
which handles authentication via LDAP, Shib, etc. This XMLUI Aspect
also uses the DSpace Authentication Plugins from
org.dspace.authenticate.* to actually perform the authentication &
report whether it was successful or not.
For more info on creating aspects, see some of the XMLUI Customization
guides here:
https://wiki.duraspace.org/display/DSPACE/DSpaceResources#DSpaceResources-Guides
The "official" way is the way the core Committers would likely do this,
as it's something that would be supported across all DSpace sites, and
actually uses the Authentication Plugins which also work for JSPUI, etc.
But, if you just wanted to get it working for Michigan, then you could
also choose...
(2) The "unofficial" way: As you mentioned, Cocoon is really just a
servlet. So, it is possible to run other servlets alongside it. So, you
can run your existing cosign servlet alongside Cocoon as a completely
separate servlet (e.g. at /webiso-login path). I think this would work
as long as you were able to pass back some flag to let DSpace know the
person authenticated correctly. (You've probably already done this in
some way in your JSPUI implementation of this work...so, it likely would
be similar logic to that)
Again, that's just off the top of my head. Which way you choose is
entirely up to you.
Good luck,
- Tim
On 7/11/2011 8:36 AM, Blanco, Jose wrote:
> Any suggestions? Really stuck here.
>
> *From:*Blanco, Jose [mailto:
bla...@umich.edu]
> *Sent:* Wednesday, July 06, 2011 3:09 PM
> *To:* Mark Diggory
> *Cc:*
dspac...@lists.sourceforge.net
> *Subject:* Re: [Dspace-tech] adding cosing to manakin
>
> Mark, I’m getting closer, now I can get the cosign page and login
> successfully, but what I did is map the /webiso-login to the servlet Cocoon.
>
> <servlet-mapping>
>
> <servlet-name>Cocoon</servlet-name>
>
> <url-pattern>/webiso-login</url-pattern>
>
> </servlet-mapping>
>
> In the jsp environment I had it mapped to a specifc servlet that did
> some special things, but I’m not sure how to do this in the xmlui
> environment. In the xmlui area there is only one servlet – Cocoon. Where
> do I put my jspui servlet code to handle auth? As you can tell I’m new
> to Cocoon.
>
> Thank you!
>
> Jose
>
> *From:*
mdig...@gmail.com [mailto:
mdig...@gmail.com] *On Behalf Of
> *Mark Diggory
> *Sent:* Monday, June 27, 2011 8:26 PM
> *To:* Blanco, Jose
> *Cc:*
dspac...@lists.sourceforge.net
> *Subject:* Re: [Dspace-tech] adding cosing to manakin
>
> No, each webapp needs to list its needed dependencies separately.
> Listing cosign as a dependency in dspace/pom.xml will only place it into
> the commandline application lib directory.
>
> On Fri, Jun 24, 2011 at 8:33 AM, Blanco, Jose <
bla...@umich.edu
> <mailto:
bla...@umich.edu>> wrote:
>
> Mark, the dspace/pom.xml is the only place that the jscosign is listed,
> and it seems like it would hold for all the apps.
>
> Take a look.
>
> *From:*Mark Diggory [mailto:
mdig...@atmire.com
> <mailto:
mdig...@atmire.com>]
> *Sent:* Friday, June 24, 2011 1:48 AM
> *To:* Blanco, Jose
> *Cc:*
dspac...@lists.sourceforge.net
> <mailto:
dspac...@lists.sourceforge.net>
> *Subject:* Re: [Dspace-tech] adding cosing to manakin
> <
http://blancoj.dev.deepblue.lib.umich.edu/WEB-INF/web.xml>
>
DSpac...@lists.sourceforge.net <mailto:
DSpac...@lists.sourceforge.net>
> @mire -
www.atmire.com <
http://www.atmire.com/>
> 2888 Loker Avenue East - Suite 305 - Carlsbad - CA - 92010
> Esperantolaan 4 - Heverlee 3001 - Belgium
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense..
>
http://p.sf.net/sfu/splunk-d2d-c1
> _______________________________________________
> DSpace-tech mailing list
>
DSpac...@lists.sourceforge.net <mailto:
DSpac...@lists.sourceforge.net>
> @mire -
www.atmire.com <
http://www.atmire.com/>
> 2888 Loker Avenue East - Suite 305 - Carlsbad - CA - 92010
> Esperantolaan 4 - Heverlee 3001 - Belgium
>
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
>
http://p.sf.net/sfu/splunk-d2d-c2