omniauth-orcid 1.0.11 → 1.0.12

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cae9a23c2fe7fc6f767bb8aa638d37d1327a93fb
4
- data.tar.gz: 77ee76452d7e695350a3ad3bf150363815dc125c
3
+ metadata.gz: 6cc33d7da8926def2d446c4ea6236c0d3cdfc328
4
+ data.tar.gz: 5331386ba0d88eed4cc87f889e3057bebedbf723
5
5
  SHA512:
6
- metadata.gz: bb95dc9ba8c53b0a589dacc8e1a65d378ba4c456b2896af6a48d45836828a7cc09eaffacdfd943fc8f94572ca3e83fda315dc1d6289fa806495cc6f59db9b493
7
- data.tar.gz: 33da7a618b8598201711ca89ca6b601ed4beab6954bbb5e9e3dc7e3e82acd16f12c6dbae56f6879d3fc9a08d4c2a0184c6044cdfddbce96122321be05a88c395
6
+ metadata.gz: ce5b0529adfe4077c6ff40a5bdaff9e491107f8160fcc2f429563a018d214511a96e6305cde4485e15e57bf10317eb5bc1b0ad7294a41564e975da7ce86cc20b
7
+ data.tar.gz: faf75d8ac8e52c313dffa763da90910b0905eebf5f8eda6421b4063131c16389ecad2965b3c1d0e5689182d984e8fe47d69f66e9a1fc176c5039e700c3bab23b
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Orcid
3
- VERSION = "1.0.11"
3
+ VERSION = "1.0.12"
4
4
  end
5
5
  end
@@ -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
- option :client_options, {
21
- site: site,
22
- authorize_url: authorize_url,
23
- token_url: token_url,
24
- scope: scope
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|
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.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gudmundur A. Thorisson