forked from yucigou/spring-social-orcid
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreadme.txt
76 lines (55 loc) · 2.98 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Spring Social ORCID Reference
The Spring Social ORCID project is an extension to Spring Social that enables integration with ORCID.
# Introduction
ORCID provides a persistent digital identifier that distinguishes one researcher from another and,
through integration in key research workflows such as manuscript and grant submission,
supports automated linkages between a researcher and his/her professional activities ensuring that
his/her work is recognized.
ORCID has been globally adopted, and at the time of writing (10 May 2016), there are over two
millions of ORCID iDs registered.
Spring Social ORCID enables integration with ORCID with OrcidConnectionFactory, a connection
factory that can be plugged into Spring Social's service provider connection framework, and with an
API binding to ORCID's REST API.
# How to get
Because the Spring Social ORCID project is not yet in the Maven Central Repository, you need to
download and build the project locally, and make it available in your local Maven repository.
Then in the Maven project of your web applicaiton or web service, add the the following Maven
dependency in the pom.xml file, which will add Spring Social ORCID to your project from your
local Maven repository:
<dependency>
<groupId>org.europepmc</groupId>
<artifactId>spring-social-orcid</artifactId>
<version>2.0.0</version>
</dependency>
As an extension to Spring Social, Spring Social ORCID depends on Spring Social.
Spring Social's core module will be transitively resolved from the Spring Social ORCID dependency.
If you'll be using Spring Social's web module, you'll need to add that dependency yourself.
In Maven:
pom.xml
<dependency>
<groupId>org.springframework.social</groupId>
<artifactId>spring-social-web</artifactId>
<version>1.1.3.RELEASE</version>
</dependency>
Note that Spring Social ORCID releases on a different schedule than Spring Social. Consequently,
Spring Social's version differs from that of Spring Social ORCID.
# Configuring ORCID Connectivity
In your Spring properties file of your web application or web service, you need to specify the
ORCID application credentials as below. By default, the Spring Social ORCID points the ORCID
Sandbox APIs. If you would like to use Spring Social ORCID in production, you need also configure
the ORCID API properties as below.
orcid.clientId=xxxxxxxxxxxxxxxxxxx
orcid.clientSecret=xxxxxxxxxxxxxxxxxxx
orcid.frontendUrl=https://orcid.org/
orcid.messageSchemaVersion=2.0
orcid.apiUrl=https://api.orcid.org/v${orcid.messageSchemaVersion}/
orcid.pubApiUrl=https://pub.orcid.org/v${orcid.messageSchemaVersion}/
orcid.authorizeUrl=https://orcid.org/oauth/authorize
orcid.accessTokenUrl=https://api.orcid.org/oauth/token
Note: Spring Social ORCID currently supports ORCID API version 2.0
# References:
1. Spring Social
http://docs.spring.io/spring-social/docs/1.1.0.RELEASE/reference/htmlsingle/#section_implementing
2. ORCID
https://members.orcid.org/api/oauth/3legged-oauth
https://members.orcid.org/api/tutorial/read-orcid-records