-
Notifications
You must be signed in to change notification settings - Fork 239
Closed
Description
I am trying to generate a read-public access token so that I can create a script that fetches the works list of researchers in our institute. However, I am currently getting an error at this early step.
Using a Git Bash terminal, I am trying the following command:
curl -i -L -H 'Accept: application/json' -d 'client_id=APP-K7IKXN44S24UQHXA' -d 'client_secret=REDACTED' -d 'scope=/read-public' -d 'grant_type=client_credentials' 'https://orcid.org/oauth/token'
And getting the following output:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 387 0 237 100 150 1032 653 --:--:-- --:--:-- --:--:-- 1689HTTP/2 401
date: Wed, 17 Jul 2024 17:39:42 GMT
content-type: application/json;charset=UTF-8
cf-ray: 8a4c034c9bd3221d-MAN
cf-cache-status: DYNAMIC
cache-control: no-cache, no-store, max-age=0, must-revalidate, no-cache="set-cookie"
expires: 0
set-cookie: AWSELB=CBD1D7FF1216388FA48838CBCA4774FD22800B8FB54435AF29792799CA409598D5BFA4D6F6F28785DC48B520E4774163C9C362CFCFCB6C5DA28C497BCB940234F0E744A53F;PATH=/
vary: accept-encoding
pragma: no-cache
set-cookie: AWSELBCORS=CBD1D7FF1216388FA48838CBCA4774FD22800B8FB54435AF29792799CA409598D5BFA4D6F6F28785DC48B520E4774163C9C362CFCFCB6C5DA28C497BCB940234F0E744A53F;PATH=/;SECURE;SAMESITE=None
x-content-type-options: nosniff
x-frame-options: DENY
x-xss-protection: 1; mode=block
server: cloudflare
{"error":"invalid_scope","error_description":"One of the provided scopes is not allowed. Please refer to the list of allowed scopes at: https://github.com/ORCID/ORCID-Source/tree/master/orcid-model/src/main/resources/record_2.0#scopes."}
It seems the scope is causing some kind of problem. I have tried various other scopes, including /read-limited, and I'm getting the same error.
Metadata
Metadata
Assignees
Labels
No labels