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 +4 -4
- data/lib/omniauth/orcid/version.rb +1 -1
- data/lib/omniauth/strategies/orcid.rb +3 -8
- 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: f04711606c8a7ae377a9b50a255dca491836c2e2
|
4
|
+
data.tar.gz: 13bdb98924be6f31ed4db6918cb353764c643a14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 281df4a6d0033fefe24a1053959e61de2f718437cb59a9affe04d8605c66c5d515cb98da81886536af81bb09e5fc7bd94a90c52808c686bf0755a3ccbd2f4b51
|
7
|
+
data.tar.gz: 7811ea15d2f35743ce1613ec1c8dd33b54e71c7d0743c53614760f61a2b5b8a1967d0f2f00033492e0dcafef30b4521f91fd5099535ddaeac42fea8390e0d263
|
@@ -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
|
-
|
23
|
-
|
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"] }
|