Hi All.

I am struggling to write a SAML authentication plugin. I have tried to make sense of the documentation regarding this, but cannot get it to work.

Basically, I write an implementation of AuthenticationMethod, and configure DSpace to use it. So far so good, I can see that my code is being accessed when I click on "Login". The only code accessed is method getSpecialGroups() and loginPageURL()

However, the "authenticate" method is never called through the process, and DSpace responds with "No Authentication Method Found" (if method "loginPageUrl" returns null).

If I set method "loginPageUrl" to return a string (for example request.getContextPath() +"/saml-login"), I simply get a "Page Not Found", so somewhere I am missing a mapping that tells the authentication process to access my "authenticate" method through a different URL?

In AuthenticationServiceImpl.java I see that the authentication process iterates through the stackable list of AuthenticationMethods and calls their "authenticate" method, but then why does it not call mine?

Any help would be greatly appreciated.

Kind Regards.

Shaun.

--
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to