omniauth-orcid 1.0.3 → 1.0.4

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: 55c817897ccb1d8dcc81ae43fc827354a4c65051
4
- data.tar.gz: 1040b4f7267fdb987c5ff526fdf9bb826bea6e68
3
+ metadata.gz: f04711606c8a7ae377a9b50a255dca491836c2e2
4
+ data.tar.gz: 13bdb98924be6f31ed4db6918cb353764c643a14
5
5
  SHA512:
6
- metadata.gz: e4f8e8096f92f0a003579a2aad107b1a4d56d4bdd54ecada707122b95cdb303ea984481efd0face12e3ec2de4590f270cc5729051fb79076950844f5268af058
7
- data.tar.gz: 4cf6d8246b7f98897783e361a843a22eb203ff558a108d7ce2b416a6a67f7d336316606025c9c9c1fd391fba08e332b6f8fde8687f3862a419c69432e0e149e3
6
+ metadata.gz: 281df4a6d0033fefe24a1053959e61de2f718437cb59a9affe04d8605c66c5d515cb98da81886536af81bb09e5fc7bd94a90c52808c686bf0755a3ccbd2f4b51
7
+ data.tar.gz: 7811ea15d2f35743ce1613ec1c8dd33b54e71c7d0743c53614760f61a2b5b8a1967d0f2f00033492e0dcafef30b4521f91fd5099535ddaeac42fea8390e0d263
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Orcid
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
  end
5
5
  end
@@ -7,7 +7,6 @@ module OmniAuth
7
7
  class ORCID < OmniAuth::Strategies::OAuth2
8
8
 
9
9
  DEFAULT_SCOPE = '/authenticate'
10
- DEFAULT_SHOW_LOGIN = 'true'
11
10
 
12
11
  option :name, "orcid"
13
12
 
@@ -18,13 +17,9 @@ module OmniAuth
18
17
  }
19
18
 
20
19
  def authorize_params
21
-
22
- # Trick shamelessly borrowed from the omniauth-facebook gem!
23
- super.tap do |params|
24
- %w(scope show_login).each { |v| params[v.to_sym] = request.params[v] if request.params[v] }
25
- params[:scope] ||= DEFAULT_SCOPE # ensure that we're always request *some* default scope
26
- params[:show_login] ||= DEFAULT_SHOW_LOGIN # bypass registration screen
27
- end
20
+ super.merge(scope: request.params["scope"] || DEFAULT_SCOPE,
21
+ show_login: request.params["show_login"] || 'true',
22
+ state: request.params["state"])
28
23
  end
29
24
 
30
25
  uid { raw_info["orcid"] }
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.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gudmundur A. Thorisson