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:
https://wiki.lyrasis.org/display/DSDOC7x/ORCID+Integration#ORCIDIntegration-I'munabletoauthenticateviaORCID

Tim

________________________________
From: [email protected] <[email protected]> on behalf of 
Lewatle Johannes Phaladi <[email protected]>
Sent: Friday, August 5, 2022 3:15 AM
To: DSpace Technical Support <[email protected]>
Subject: [dspace-tech] 401 unauthorized, error occurred during login via ORCID

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

--
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 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/ffa1c87e-f18b-4710-a38f-b76f9e134372n%40googlegroups.com<https://groups.google.com/d/msgid/dspace-tech/ffa1c87e-f18b-4710-a38f-b76f9e134372n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/PH0PR22MB3274AB550F6C9935CF471A0CED9E9%40PH0PR22MB3274.namprd22.prod.outlook.com.

Reply via email to