On Wed, Apr 15, 2020 at 01:32:13PM -0400, Jose Blanco wrote:
> In config/modules/authentication.cfg  I have indicated the auth method I
> want the system to use from the browser.
> 
> *plugin.sequence.org.dspace.authenticate.AuthenticationMethod =
> org.dspace.authenticate.PasswordAuthentication*
> 
> I want the system to use a different auth method when interacting with
> SWORDv2.  How do I go about doing this in 6.3?

I have not tried this, but I think that the least intrusive way might
be to add a ServletContextConfiguration source to
dspace/config/config-definition.xml:

  <servletContext config-optional='true'/>
  <!-- place this before the 'properties' with fileName="local.cfg" -->

You may need to add this in the <header> section, to ensure that the
source's tag is defined:

  <providers>
    <provider config-tag="servletContext"
              
config-class="org.apache.commons.configuration.DefaultConfigurationBuilder"/>
  </providers>

Then you could add a ContextParameter to the 'swordv2' Context:

  <Parameter
    name='plugin.sequence.org.dspace.authenticate.AuthenticationMethod'
    value='org.dspace.authenticate.SomeMethod'
  />

You can probably use 'bin/dspace dsprop --property=dspace.dir' to more
conveniently test config-definition.xml until you get no errors, or at
least until the error you get is that there is no Servlet context.

Please let us know if this works.  I think we ought to make this a
standard feature, if it does.

-- 
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/20200416133243.GA20795%40IUPUI.Edu.

Attachment: signature.asc
Description: PGP signature

Reply via email to