I have been trying to add cosign, which I have working in jspui just fine, in 
xmlui, and I have a few questions.

I see that in /aspects/EPerson/sitemap.xmap

There is this code:

<map:match pattern="profile">
        <map:select type="AuthenticatedSelector">
                <map:when test="eperson">
                        <map:match type="request" pattern="eperson-continue">
                                <map:call continuation="{1}"/>
                        </map:match>
                        <map:call function="doUpdateProfile"/>
                </map:when>
                <map:otherwise>
                        <map:act type="StartAuthentication"/>
                </map:otherwise>
        </map:select>
</map:match>

And what I have done so far is put in a filter in the web.xml file so that the 
cosign code can gets called when /webiso-login is seen.  I changed 
PasswordAuthentication.java to redirect to /webiso-login.  And so, when I click 
on the /login I go to cosign and login just fine, but when I get back to dspace 
I get a message that the page is not  found.  

I've  created an action called FinshAuthenticationAction and want to put it 
somewhere to run after returning from cosign.  The url I get back from cosign 
looks like this:

cosign/valid?cosign-blancoj.d...

so I think I have to create something to catch the return and run 
FinishAuthenticationAction.  I would think it would be something like this:

<map:match pattern="cosign">
        <map:select type="AuthenticatedSelector">
                <map:when test="eperson">
                        <map:match type="request" pattern="eperson-continue">
                                <map:call continuation="{1}"/>
                        </map:match>
                        <map:call function="doUpdateProfile"/>
                </map:when>
                <map:otherwise>
                        <map:act type="FinishAuthentication"/>
                </map:otherwise>
        </map:select>
</map:match>

But I'm not sure, because I don't quite understand why in the pattern it looks 
for "profile" in the case of the start of the authentication.  I would think 
the patter comes from the url?

Thank you!
Jose

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to