401 unauthorized, error occurred during login via ORCID

96 views
Skip to first unread message

Lewatle Johannes Phaladi

unread,
Aug 5, 2022, 4:15:01 AM8/5/22
to DSpace Technical Support
Hi DSpace Colleagues,

I am running DSpace version 7.3, followed the following document enabling ORCID integration : https://wiki.lyrasis.org/display/DSDOC7x/ORCID+Integration 
I am using orcid sandbox also received client id and secret for our server to run this integration.
The problem occur when logging in via ORCID  getting 401 unauthorized error, I have attached dspace log file with screenshots that might give indication on what is happening.

Your assistance is appreciated.

Regards,
Lewatle 
401 unauthorized.png
ORCID login screen.png
login screen.png
dspace.log

Lewatle Johannes Phaladi

unread,
Aug 5, 2022, 7:53:02 AM8/5/22
to DSpace Technical Support
authorization access.png

Tim Donohue

unread,
Aug 5, 2022, 11:36:55 AM8/5/22
to Lewatle Johannes Phaladi, DSpace Technical Support
Hi Lewatle,

You'll find the cause of the error in the log file you shared... Look for the "ERROR" lines in your log and you'll find this one:

2022-08-04 11:43:42,124 ERROR unknown unknown org.dspace.authenticate.OrcidAuthenticationBean @ An error occurs registering a new EPerson from ORCID
java.lang.IllegalStateException: The email is configured private on orcid
      at org.dspace.authenticate.OrcidAuthenticationBean.lambda$registerNewEPerson$0(OrcidAuthenticationBean.java:215) ~[dspace-api-7.3.jar:7.3]
      at java.util.Optional.orElseThrow(Optional.java:408) ~[?:?]
      at org.dspace.authenticate.OrcidAuthenticationBean.registerNewEPerson(OrcidAuthenticationBean.java:215) [dspace-api-7.3.jar:7.3]
      at org.dspace.authenticate.OrcidAuthenticationBean.authenticateWithOrcid(OrcidAuthenticationBean.java:181) [dspace-api-7.3.jar:7.3]
      at org.dspace.authenticate.OrcidAuthenticationBean.authenticate(OrcidAuthenticationBean.java:96) [dspace-api-7.3.jar:7.3]
      at org.dspace.authenticate.OrcidAuthentication.authenticate(OrcidAuthentication.java:82) [dspace-api-7.3.jar:7.3]


Notice that the error message says "The email is configured private on orcid".  The ORCID account you are using MUST share its email address with DSpace.  See this Troubleshooting note in the ORCID documentation:

Tim


From: dspac...@googlegroups.com <dspac...@googlegroups.com> on behalf of Lewatle Johannes Phaladi <joem...@gmail.com>
Sent: Friday, August 5, 2022 3:15 AM
To: DSpace Technical Support <dspac...@googlegroups.com>
Subject: [dspace-tech] 401 unauthorized, error occurred during login via ORCID
 
--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
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 dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ffa1c87e-f18b-4710-a38f-b76f9e134372n%40googlegroups.com.

Lewatle Johannes Phaladi

unread,
Aug 8, 2022, 9:49:02 AM8/8/22
to DSpace Technical Support
Hello Tim,

Thanks a lot for pointing that, I will come back with feedback once done.

Regards,
Lewatle 

Reply all
Reply to author
Forward
0 new messages