omniauth-line-v2_1 1.0.0 → 1.1.0
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/CHANGELOG.md +5 -0
- data/lib/omniauth/line_v2_1/version.rb +1 -1
- data/lib/omniauth/strategies/line_v2_1.rb +10 -6
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32152b111920b320e068b3038339245e0a7f8b7bf3b42481b07f33276a770afb
|
4
|
+
data.tar.gz: 9424e8c32ba957214cb9583ab3c094544d0cc0500a26b4b425330775e840401c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96b6264a13cbd4e4a9645dcd57ca1e9a0403d04989654b65beab55568f72ac17e2ecfc1631895622b56b311c2c46d1e420728789a3781d06526e8355bb1d7629
|
7
|
+
data.tar.gz: f9cbd122a9ca71a835f0c4bb3c48e157a75c7164e283efbac7df689a02d9473b94b554a2c8065e3da3e6b3f04308424a7daedca65efd93c96113d8871a461264
|
data/CHANGELOG.md
CHANGED
@@ -56,16 +56,16 @@ module OmniAuth
|
|
56
56
|
options[:redirect_uri] || (full_host + callback_path)
|
57
57
|
end
|
58
58
|
|
59
|
-
def authorize_params
|
59
|
+
def authorize_params # rubocop:disable Metrics/AbcSize
|
60
60
|
super.tap do |params|
|
61
|
-
|
62
|
-
params[
|
61
|
+
options[:authorize_options].each do |key|
|
62
|
+
params[key] = request.params[key.to_s] unless empty?(request.params[key.to_s])
|
63
63
|
end
|
64
64
|
params[:scope] ||= DEFAULT_SCOPE
|
65
65
|
params[:nonce] ||= SecureRandom.hex(24)
|
66
66
|
params[:response_type] = 'code'
|
67
|
-
session['omniauth.state'] = params[:state]
|
68
|
-
session['omniauth.nonce'] = params[:nonce]
|
67
|
+
session['omniauth.state'] = params[:state] unless empty?(params[:state])
|
68
|
+
session['omniauth.nonce'] = params[:nonce] unless empty?(params[:nonce])
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
@@ -74,10 +74,14 @@ module OmniAuth
|
|
74
74
|
def prune!(hash)
|
75
75
|
hash.delete_if do |_, value|
|
76
76
|
prune!(value) if value.is_a?(Hash)
|
77
|
-
|
77
|
+
empty?(value)
|
78
78
|
end
|
79
79
|
end
|
80
80
|
|
81
|
+
def empty?(value)
|
82
|
+
value.nil? || (value.respond_to?(:empty?) && value.empty?)
|
83
|
+
end
|
84
|
+
|
81
85
|
def id_token_info
|
82
86
|
return @id_token_info if defined?(@id_token_info)
|
83
87
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-line-v2_1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masahiro
|
@@ -52,15 +52,15 @@ files:
|
|
52
52
|
- lib/omniauth-line-v2_1.rb
|
53
53
|
- lib/omniauth/line_v2_1/version.rb
|
54
54
|
- lib/omniauth/strategies/line_v2_1.rb
|
55
|
-
homepage: https://github.com/cadenza-tech/omniauth-line-v2_1/tree/v1.
|
55
|
+
homepage: https://github.com/cadenza-tech/omniauth-line-v2_1/tree/v1.1.0
|
56
56
|
licenses:
|
57
57
|
- MIT
|
58
58
|
metadata:
|
59
|
-
homepage_uri: https://github.com/cadenza-tech/omniauth-line-v2_1/tree/v1.
|
60
|
-
source_code_uri: https://github.com/cadenza-tech/omniauth-line-v2_1/tree/v1.
|
61
|
-
changelog_uri: https://github.com/cadenza-tech/omniauth-line-v2_1/blob/v1.
|
59
|
+
homepage_uri: https://github.com/cadenza-tech/omniauth-line-v2_1/tree/v1.1.0
|
60
|
+
source_code_uri: https://github.com/cadenza-tech/omniauth-line-v2_1/tree/v1.1.0
|
61
|
+
changelog_uri: https://github.com/cadenza-tech/omniauth-line-v2_1/blob/v1.1.0/CHANGELOG.md
|
62
62
|
bug_tracker_uri: https://github.com/cadenza-tech/omniauth-line-v2_1/issues
|
63
|
-
documentation_uri: https://rubydoc.info/gems/omniauth-line-v2_1/1.
|
63
|
+
documentation_uri: https://rubydoc.info/gems/omniauth-line-v2_1/1.1.0
|
64
64
|
funding_uri: https://patreon.com/CadenzaTech
|
65
65
|
rubygems_mfa_required: 'true'
|
66
66
|
rdoc_options: []
|