omniauth-orcid 1.0.11 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth/orcid/version.rb +1 -1
- data/lib/omniauth/strategies/orcid.rb +11 -7
- 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: 6cc33d7da8926def2d446c4ea6236c0d3cdfc328
|
4
|
+
data.tar.gz: 5331386ba0d88eed4cc87f889e3057bebedbf723
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce5b0529adfe4077c6ff40a5bdaff9e491107f8160fcc2f429563a018d214511a96e6305cde4485e15e57bf10317eb5bc1b0ad7294a41564e975da7ce86cc20b
|
7
|
+
data.tar.gz: faf75d8ac8e52c313dffa763da90910b0905eebf5f8eda6421b4063131c16389ecad2965b3c1d0e5689182d984e8fe47d69f66e9a1fc176c5039e700c3bab23b
|
@@ -7,22 +7,26 @@ module OmniAuth
|
|
7
7
|
class ORCID < OmniAuth::Strategies::OAuth2
|
8
8
|
|
9
9
|
DEFAULT_SCOPE = '/authenticate'
|
10
|
-
DEFAULT_NAMESPACE = '/authenticate'
|
11
10
|
API_VERSION = '1.2'
|
12
11
|
|
13
12
|
option :name, "orcid"
|
14
13
|
|
15
14
|
option :member, false
|
16
15
|
option :sandbox, false
|
16
|
+
option :provider_ignores_state, true
|
17
17
|
|
18
18
|
option :authorize_options, [:redirect_uri, :show_login]
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
20
|
+
args [:client_id, :client_secret]
|
21
|
+
|
22
|
+
def initialize(app, *args, &block)
|
23
|
+
super
|
24
|
+
|
25
|
+
@options.client_options.site = site
|
26
|
+
@options.client_options.authorize_url = authorize_url
|
27
|
+
@options.client_options.token_url = token_url
|
28
|
+
@options.client_options.scope = scope
|
29
|
+
end
|
26
30
|
|
27
31
|
def authorize_params
|
28
32
|
super.tap do |params|
|