Provides an authorization code that can be exchanged for an access token and an authenticated ORCID iD.
Endpointhttps://sandbox.orcid.org/oauth/authorize
Scope/authenticate
Response typecode
https://sandbox.orcid.org/oauth/authorize?client_id=APP-UL39T4BGTQ3TNB4L&response_type=code&scope=/authenticate&redirect_uri=REPLACE WITH REDIRECT URIProvides an authenticated ORCID iD and an access token that can be used to read public information on the record.
Endpointhttps://sandbox.orcid.org/oauth/token
Response typeaccess token and ORCID iD
curl -i -L -k -H 'Accept: application/json' --data 'client_id=APP-UL39T4BGTQ3TNB4L&client_secret=187854af-f113-43da-8de5-eeed661aacce&grant_type=authorization_code&redirect_uri=REPLACE WITH REDIRECT URI&code=REPLACE WITH OAUTH CODE' https://sandbox.orcid.org/oauth/tokenProvides an access token that can be used to read public information on the record and an id_token using OpenID Connect and client-side only implicit OAuth. More information on OpenID Connect Endpoint
Endpointhttps://sandbox.orcid.org/oauth/token
Scopeopenid
Response typetoken
https://sandbox.orcid.org/oauth/authorize?client_id=APP-UL39T4BGTQ3TNB4L&response_type=token&scope=openid&redirect_uri=REPLACE WITH REDIRECT URIThis controller returns a profile for the authenticated user (identifier + attributes), found with the access token (CAS granting ticket).
What methods do I need to overwrite to create my wrapper? Is there any documentation of this class? At least I would like to have original source code to take a look into it.
Thank you for the help, as you can see I am a little lost on how to do it.
Aleix
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.
The problem comes from the property token-url. In order to retrieve the data of the user, I need to do an API request to the directionhttps://api.sandbox.orcid.org/v3.0/{user}/record , the problem is that I do not know how to configure CAS to substitute {user} with the User ID that is trying to log in.For example, let's say that the user 0009-0005-6065-7965 tries to log in. Then to retrieve their data I would do a request tohttps://api.sandbox.orcid.org/v3.0/0009-0005-6065-7965/record .
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.
The problem comes from the property token-url. In order to retrieve the data of the user, I need to do an API request to the directionhttps://api.sandbox.orcid.org/v3.0/{user}/record , the problem is that I do not know how to configure CAS to substitute {user} with the User ID that is trying to log in.For example, let's say that the user 0009-0005-6065-7965 tries to log in. Then to retrieve their data I would do a request tohttps://api.sandbox.orcid.org/v3.0/0009-0005-6065-7965/record .