VIVO ORCID integration

132 views
Skip to first unread message

Nawras Al Ghusini

unread,
Jul 4, 2017, 6:55:25 AM7/4/17
to VIVO Tech
Folks,
I am using VIVO version 1.9.2, I am working on integration with ORCID , my question is:
- do I need to install any additional plugins/libraries to VIVO?
- does it work with ORCID sandbox API or just with ORCID production API?

Thanks in advance
Nawras

kbr...@uow.edu.au

unread,
Jul 4, 2017, 10:47:23 PM7/4/17
to VIVO Tech
Hi Nawras,

I believe the setup should be the same for both 1.8.x and 1.9.x:

* 1.8.x documentation  (more complete)

I don't think any further plugin/library is required - the orcid-client is included with VIVO.

It is possible to configure VIVO to link with either the sandbox, public or production member APIs - the ORCID team should provide you with appropriate credentials.


Regards,
Keith




Nawras Al Ghusini

unread,
Jul 5, 2017, 1:27:20 AM7/5/17
to VIVO Tech
Thanks Keith for quick response!

I have already done all the steps mentioned in 'Activating the ORCID integration'  and ORCID team provided me with credentials (currently from sandbox.orcid.org)
for ORCID authorization I call following URL:
https://sandbox.orcid.org/oauth/authorize?client_id=ClientId&response_type=code&scope=/read-limited%20/activities/update%20&redirect_uri=https%3A%2F%2Fexperts-uat.masdar.ac.ae%2Fvivo%2F

after it redirects back to my website nothing happened :( the 'code' parameter appears in redirected URL)
 I have checked the log file it shows below:
2017-07-03 09:28:06,569 DEBUG [OrcidIdDataGetter] Result is orcid=http://orcid.org/0000-0001-6937-077X, confirmed=null
2017-07-03 09:28:06,569 DEBUG [OrcidIdDataGetter] Returning these values:{orcidInfo={authorizedToConfirm=true, orcids={http://orcid.org/0000-0001-6937-077X=false}, orcidUrl=/vivo/orcid?individualUri=https%3A%2F%2Fexperts-uat.masdar.ac.ae%2Fvivo%2Findividual%2Fn5948}}

Kindly advise
note: attached file contains a snapshot from runtime.properties for ORDID settings (in case I missed out something)


Best regards,
Nawras
orcid configuration.png

kbr...@uow.edu.au

unread,
Jul 6, 2017, 12:16:02 AM7/6/17
to VIVO Tech
Hi Nawras,

I believe version 1.1 of the ORCID API is no longer supported - perhaps you can update the references in your runtime.properties to point to 1.2.

We use:

orcid.messageVersion = 1.2

orcid.publicApiBaseUrl     = http://pub.sandbox.orcid.org/v1.2/
orcid.authorizedApiBaseUrl = http://api.sandbox.orcid.org/v1.2/
orcid.oauthAuthorizeUrl    = http://sandbox.orcid.org/oauth/authorize
orcid.oauthTokenUrl        = http://api.sandbox.orcid.org/oauth/token

Regards,
Keith

Nawras Al Ghusini

unread,
Jul 11, 2017, 5:08:49 AM7/11/17
to VIVO Tech
Thanks Keith!
I have updated the references in runtime.properties to point to 1.2. But i still have the issue that when I click 'confirm ORCID ID' link, it shows a blank page:(
The log shows below debug info:

2017-07-11 13:02:09,909 DEBUG [OrcidIdDataGetter] Result is orcid=http://orcid.org/0000-0001-6937-077X, confirmed=null
2017-07-11 13:02:09,909 DEBUG [OrcidIdDataGetter] Returning these values:{orcidInfo={authorizedToConfirm=true, orcids={http://orcid.org/0000-0001-6937-077X=false}, orcidUrl=/vivo/orcid?individualUri=https%3A%2F%2Fexperts-uat.masdar.ac.ae%2Fvivo%2Findividual%2Fn5948}}
2017-07-11 13:02:13,966 DEBUG [OrcidIntegrationController] Path info: null
2017-07-11 13:02:13,984 DEBUG [OrcidDefaultHandler] Authorized? individualUri=https://experts-uat.masdar.ac.ae/vivo/individual/n5948, profileUris=[]

Any suggestions would be appreciated.

Best regards,
Nawras

Graham Triggs

unread,
Jul 14, 2017, 5:24:30 AM7/14/17
to vivo...@googlegroups.com, Nawras Al Ghusini
Hi,

Looking at that debug listing, it looks like it is failing in the “isAuthorized” check (OrcidDefaultHandler).

According to the comment in there, only a “self-editor” is authorised to confirm an Orcid ID (e.g. you would have to login with an account registered against the profile, which has also been granted “self edit” privileges.

G

-- 

Graham Triggs
Technical Lead for VIVO
DuraSpace.org

--
You received this message because you are subscribed to the Google Groups "VIVO Tech" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vivo-tech+...@googlegroups.com.
To post to this group, send email to vivo...@googlegroups.com.
Visit this group at https://groups.google.com/group/vivo-tech.
To view this discussion on the web visit https://groups.google.com/d/msgid/vivo-tech/056a2ea5-0b89-4dad-9826-66e01adcc539%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nawras Al Ghusini

unread,
Jul 17, 2017, 3:23:43 AM7/17/17
to VIVO Tech, nawras....@gmail.com
Thanks Graham,

Logging in with 'self-editor' privileges allows me to see the ORCID page in VIVO.
When try to add/confirm ORCID id : the system redirects me into ORCID login page to authorize access, after filling login info, it redirects into:
https://experts-uat.masdar.ac.ae/orcid/callback?code=nh5Mdx&state=1261646948
with error message : 404 Not Found

Kindly advise


Nawars

Nawras Al Ghusini

unread,
Jul 19, 2017, 5:53:21 AM7/19/17
to VIVO Tech, nawras....@gmail.com
Log file shows the below DEBUG info:

2017-07-19 13:47:37,544 DEBUG [OrcidIdDataGetter] Returning these values:{orcidInfo={authorizedToConfirm=true, orcids={}, orcidUrl=/vivo/orcid?individualUri=https%3A%2F%2Fexperts-uat.masdar.ac.ae%2Fvivo%2Findividual%2Fn669}}
2017-07-19 13:47:40,560 DEBUG [OrcidIntegrationController] Path info: null
2017-07-19 13:47:40,575 DEBUG [OrcidDefaultHandler] Authorized? individualUri=https://experts-uat.masdar.ac.ae/vivo/individual/n669, profileUris=[https://experts-uat.masdar.ac.ae/vivo/individual/n669]
2017-07-19 13:47:43,433 DEBUG [OrcidIntegrationController] Path info: /getAuthticateAuth
2017-07-19 13:47:43,433 DEBUG [AuthorizationCache] getStatus for action: AUTHENTICATE, status=AuthorizationStatus [action=AUTHENTICATE, id=1859268839, state=SEEKING_AUTHORIZATION, successUrl=https://experts-uat.masdar.ac.ae/orcid/readProfile, failureUrl=https://experts-uat.masdar.ac.ae/orcid/readProfile, authorizationCode=, accessToken=No AccessToken, errorCode=, errorDescription=, exception=No exception]



Thanks in advance

On Friday, July 14, 2017 at 1:24:30 PM UTC+4, Graham Triggs wrote:

Graham Triggs

unread,
Jul 19, 2017, 7:37:46 AM7/19/17
to vivo...@googlegroups.com, Nawras Al Ghusini, nawras....@gmail.com
I don’t know why, but it looks like you are sending “/orcid/readProfile” to ORCiD as a redirect url, when it should be going to “/vivo/orcid/readProfile"

-- 

Graham Triggs
Technical Lead for VIVO
DuraSpace.org


Nawras

unread,
Jul 19, 2017, 8:01:13 AM7/19/17
to VIVO Tech, nawras....@gmail.com


Kindly find below a screenshot of ORCID configuration  from runtime.properties (in case I missed something).

Is there any other place where we set ORCID configuration?


Reply all
Reply to author
Forward
0 new messages