omniauth-orcid 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/omniauth/orcid/version.rb +1 -1
- data/lib/omniauth/strategies/orcid.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e6f69d6f049b73e1dc1eee59c4919d00700c14d5
|
|
4
|
+
data.tar.gz: acc281c20bcce6b9d1d702def2e4ebfa6c0c1a9e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 681950433ba79c8a7cddfe12319be39cb703ad033c529f701728e905738dedbcd9c9773fa2d31ffcf0d09bce961e8234d227850d9a63179a27ea03074190b110
|
|
7
|
+
data.tar.gz: a87cb677d9bd17ab7a70bff30a219ae2eb04987122c38b0f5747aa8fd7b90e7f2cf9a40aa4e224c944205a2a3cc26a66e27b6d70eea8982d94db862fab3d92b1
|
|
@@ -43,11 +43,11 @@ module OmniAuth
|
|
|
43
43
|
|
|
44
44
|
# URLs for ORCID OAuth: http://members.orcid.org/api/tokens-through-3-legged-oauth-authorization
|
|
45
45
|
def namespace
|
|
46
|
-
if
|
|
46
|
+
if options[:member] && options[:sandbox]
|
|
47
47
|
'sandbox'
|
|
48
|
-
elsif
|
|
48
|
+
elsif options[:member]
|
|
49
49
|
'production'
|
|
50
|
-
elsif
|
|
50
|
+
elsif options[:sandbox]
|
|
51
51
|
'public_sandbox'
|
|
52
52
|
else
|
|
53
53
|
'public'
|
|
@@ -64,7 +64,7 @@ module OmniAuth
|
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
def authorize_url
|
|
67
|
-
if
|
|
67
|
+
if options[:sandbox]
|
|
68
68
|
'https://sandbox.orcid.org/oauth/authorize'
|
|
69
69
|
else
|
|
70
70
|
'https://orcid.org/oauth/authorize'
|
|
@@ -81,7 +81,7 @@ module OmniAuth
|
|
|
81
81
|
end
|
|
82
82
|
|
|
83
83
|
def scope
|
|
84
|
-
if
|
|
84
|
+
if options[:member]
|
|
85
85
|
'/orcid-profile/read-limited /orcid-works/create'
|
|
86
86
|
else
|
|
87
87
|
'/authenticate'
|