Hi, In our App, I use ORCID login Oath, using the information at https://orcid.org/developer-tools, I can get the OAUTH CODE using Authorize request. And then I curl the details to get the ORCID along with access_token. Now, I use the access token to get the email of the user using curl as follows, but the response has no email. Please advise how to fix.
curl -i -H "Accept: application/vnd.orcid+xml" -H 'Authorization: Bearer af744627-92fa-4f3b-ae6c-99fb9eb19603' 'https://api.orcid.org/v2.0/0000-0002-1244-7382/email'
Thanks in advance.
Seems I made some mistakes in my response to you, my apologies. As you are using a public client /read-limited won't work. Instead try following this guideto get a two step read public token which will give you the correct permissions:
Rob
--
You received this message because you are subscribed to the Google Groups "ORCID API Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orcid-api-use...@googlegroups.com.
To post to this group, send email to orcid-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/orcid-api-users.
For more options, visit https://groups.google.com/d/optout.
Hi Saravanan,I wanted to follow up as I don't think think this is a scope issue. The /authenticate scope allows you to read public information on an ORCID record. The problem is that you're using a access token issued to a public client on the member API, only member clients work on the member API. If you change the url to pub.orcid.org instead of api.orcid.org your call will work as expected. For example:curl -i -H "Accept: application/vnd.orcid+xml" -H 'Authorization: Bearer af744627-92fa-4f3b-ae6c-99fb9eb19603' 'https://pub.orcid.org/v2.0/0000-0002-1244-7382/email'Best,-Catalina
On Fri, Apr 5, 2019 at 11:13 AM r.blackburn via ORCID API Users <orcid-a...@googlegroups.com> wrote:
Hi there,
Seems I made some mistakes in my response to you, my apologies. As you are using a public client /read-limited won't work. Instead try following this guideto get a two step read public token which will give you the correct permissions:
https://github.com/ORCID/ORCID-Source/blob/0b9b11ffde6cfd1645b77dd803f20ee36f1b7a8b/orcid-api-web/tutorial/read_public.md
Rob
--
You received this message because you are subscribed to the Google Groups "ORCID API Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orcid-a...@googlegroups.com.