Hi Lucas,

DSpace now has a 'pluggable' authentication system where you can write 
different authentication providers.  See the following for examples that come 
shipped with DSpace:

 - 
http://scm.dspace.org/trac/dspace/browser/dspace/trunk/dspace-api/src/main/java/org/dspace/authenticate

These are then configured, as a list of which ones you want to use, in 
dspace.cfg:

plugin.sequence.org.dspace.authenticate.AuthenticationMethod = \
        org.dspace.authenticate.LDAPAuthentication, \
        org.dspace.authenticate.PasswordAuthentication

Your best option may be to re-write your filter as a DSpace authentication 
class.  For the xmlui, see the EPerson sitemap for how to reference the 
authentication class and url:

 - 
dspace-xmlui/dspace-xmlui-api/src/main/resources/aspects/EPerson/sitemap.xmap   
(search for 'shibboleth' or 'LDAP' for an example).

I hope this helps,


Stuart Lewis
IT Innovations Analyst and Developer
Te Tumu Herenga The University of Auckland Library
Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
Ph: +64 (0)9 373 7599 x81928



On 20/11/2010, at 2:40 AM, Schaik, L.B. van wrote:

> Hi all,
> 
> We are currently upgrading from DSpace 1.3 to Dspace 1.6 xmlui. 
> In 1.3 we have a custom filter to allow users authenticated by another system 
> to directly link to DSpace. The user should not login again in DSpace, 
> because the authentication did already take place in the other system we 
> trust. This is done with a token.
> 
> In DSpace 1.3 you can add a custom filter to etc/dspace-web.xml, besides the 
> already existing AdminOnlyFilter and the RegisteredOnlyFilter.
> 
> We have added this to etc/dspace-web.xml:
> 
>   <filter> 
>     <filter-name>from-metis</filter-name> 
>     
> <filter-class>nl.leidenuniv.dspace.app.webui.filter.FromMetisFilter</filter-class>
>  
>   </filter>
> 
>   <filter-mapping> 
>     <filter-name>from-metis</filter-name> 
>     <url-pattern>/metis</url-pattern> 
>   </filter-mapping>
> 
> And we have made a custom class FromMetisFilter to check the token and 
> authenticity of the user.
> 
> My question: how can I accomplish the same thing in DSpace 1.6? Where should 
> I start?
> 
> Thanks in advance for any help you can give me
> 
> Regards, 
> Lucas
> 
> <ATT00001..txt><ATT00002..txt>



------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to