Re: [dspace-tech] 401 unauthorized, error occurred during login via ORCID

2022-08-08 Thread Lewatle Johannes Phaladi
Hello Tim,

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

Regards,
Lewatle 

On Friday, 5 August 2022 at 17:36:55 UTC+2 Tim Donohue wrote:

> 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:* dspac...@googlegroups.com  on behalf 
> of Lewatle Johannes Phaladi 
> *Sent:* Friday, August 5, 2022 3:15 AM
> *To:* DSpace Technical Support 
> *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 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
>  
> <https://groups.google.com/d/msgid/dspace-tech/ffa1c87e-f18b-4710-a38f-b76f9e134372n%40googlegroups.com?utm_medium=email_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 dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/1a47d8bd-cbb2-471f-93ee-7260204f0c70n%40googlegroups.com.


Re: [dspace-tech] 401 unauthorized, error occurred during login via ORCID

2022-08-05 Thread 'Tim Donohue' via 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:
https://wiki.lyrasis.org/display/DSDOC7x/ORCID+Integration#ORCIDIntegration-I'munabletoauthenticateviaORCID

Tim


From: dspace-tech@googlegroups.com  on behalf of 
Lewatle Johannes Phaladi 
Sent: Friday, August 5, 2022 3:15 AM
To: DSpace Technical Support 
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 
dspace-tech+unsubscr...@googlegroups.com<mailto:dspace-tech+unsubscr...@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<https://groups.google.com/d/msgid/dspace-tech/ffa1c87e-f18b-4710-a38f-b76f9e134372n%40googlegroups.com?utm_medium=email_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 dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/PH0PR22MB3274AB550F6C9935CF471A0CED9E9%40PH0PR22MB3274.namprd22.prod.outlook.com.