Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't generate a read-public access token #7051

Open
Secondus2 opened this issue Jul 17, 2024 · 0 comments
Open

Can't generate a read-public access token #7051

Secondus2 opened this issue Jul 17, 2024 · 0 comments

Comments

@Secondus2
Copy link

Secondus2 commented Jul 17, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant