omniauth-orcid 1.0.19 → 1.0.20

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f106d4ab2533bf66a1cdc10603fd8034b5020529
4
- data.tar.gz: c5f0b0783c6a1169bd914fe289f58dded6cd1b85
3
+ metadata.gz: 8f06bca717f079948f90e3f5c3565fac9b986dd3
4
+ data.tar.gz: b5983f4b845072fbd7c10db80d901e4f89f789f8
5
5
  SHA512:
6
- metadata.gz: 78678fa5382d8a3118c7a73976d72545ee7242eaf24b9f15d992f8debe5f88df67d054b38e8a1fbb643fee28afc1bd7403fef0b389ac732d63ee652d8cad3c3d
7
- data.tar.gz: d0b739fcdd39c6c86619368586109346573ee861189e0f170003fb6474301cdbdc66268cde1d0bb7ba4a781d8ac2504fff36139a73196e35505073ad9f477ded
6
+ metadata.gz: 1e2173a0ed0f326bde34d2e9423cb4ae4e3b9494b29bf3a6276ba9660f356234770485cc5ad0af535070745a4988d4bbb533d376861d35e5ccfe8ed9ad2df003
7
+ data.tar.gz: 8a8c01ff8b404a702b5f6db634552cf6d03202536225a3c2304b6aab1633e2aef3708f1df2bfb665db7468b4c3ddd332daf397a6e24a7b4d24a3ae348d677188
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Orcid
3
- VERSION = "1.0.19"
3
+ VERSION = "1.0.20"
4
4
  end
5
5
  end
@@ -6,7 +6,7 @@ module OmniAuth
6
6
  module Strategies
7
7
  class ORCID < OmniAuth::Strategies::OAuth2
8
8
 
9
- DEFAULT_SCOPE = '/authenticate'
9
+ DEFAULT_SCOPE = '/orcid-profile/read-limited /orcid-works/create'
10
10
  API_VERSION = '1.2'
11
11
 
12
12
  option :name, "orcid"
@@ -91,7 +91,15 @@ module OmniAuth
91
91
  uid { access_token.params["orcid"] }
92
92
 
93
93
  info do
94
- { name: access_token.params["name"] }
94
+ { name: access_token.params["name"],
95
+ email: nil,
96
+ nickname: access_token.params["orcid"],
97
+ first_name: nil,
98
+ last_name: nil,
99
+ location: nil,
100
+ description: nil,
101
+ urls: {}
102
+ }
95
103
  end
96
104
 
97
105
  extra do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-orcid
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.19
4
+ version: 1.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gudmundur A. Thorisson