omniauth 1.8.1 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of omniauth might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.rubocop.yml +9 -0
- data/.travis.yml +4 -5
- data/Gemfile +3 -3
- data/Rakefile +1 -0
- data/lib/omniauth/auth_hash.rb +2 -3
- data/lib/omniauth/builder.rb +1 -0
- data/lib/omniauth/failure_endpoint.rb +2 -0
- data/lib/omniauth/form.rb +1 -0
- data/lib/omniauth/strategy.rb +6 -1
- data/lib/omniauth/version.rb +1 -1
- data/omniauth.gemspec +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14d58248b0e3ba4fa2a473a41eb741165f3a5845
|
4
|
+
data.tar.gz: 8e0bf6159783ad5389739779cd857042758e1cd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d92df2609fbc42f208c36016e7a5ee9751ff3afb7995a1005e630cb1a616dca17396b785814a46b093f5f19c71cf7e5d33fedc64a9bd4ba7a02aa1c155f2b6a
|
7
|
+
data.tar.gz: '01491bfb6bf5978b4cb93bf03ed22c287b726d8aeaf2d6b6b1fa417c5e9d7be35a09feeda639133823e6ee7870466a22a92c8c8ddeba9bb5fa19181c620dbd3f'
|
data/.rubocop.yml
CHANGED
@@ -1,6 +1,12 @@
|
|
1
|
+
AllCops:
|
2
|
+
TargetRubyVersion: 2.2
|
3
|
+
|
1
4
|
Layout/AccessModifierIndentation:
|
2
5
|
EnforcedStyle: outdent
|
3
6
|
|
7
|
+
Layout/AlignHash:
|
8
|
+
Enabled: false
|
9
|
+
|
4
10
|
Layout/DotPosition:
|
5
11
|
EnforcedStyle: trailing
|
6
12
|
|
@@ -50,6 +56,9 @@ Style/EachWithObject:
|
|
50
56
|
Style/Encoding:
|
51
57
|
Enabled: false
|
52
58
|
|
59
|
+
Style/ExpandPathArguments:
|
60
|
+
Enabled: false
|
61
|
+
|
53
62
|
Style/HashSyntax:
|
54
63
|
EnforcedStyle: hash_rockets
|
55
64
|
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -13,14 +13,14 @@ end
|
|
13
13
|
|
14
14
|
group :test do
|
15
15
|
gem 'coveralls', :require => false
|
16
|
-
gem 'hashie', '>= 3.4.6', '< 3.
|
16
|
+
gem 'hashie', '>= 3.4.6', '< 3.7.0', :platforms => [:jruby_18]
|
17
17
|
gem 'json', '~> 2.0.3', :platforms => %i[jruby_18 jruby_19 ruby_19]
|
18
18
|
gem 'mime-types', '~> 3.1', :platforms => [:jruby_18]
|
19
|
-
gem 'rack', '>=
|
19
|
+
gem 'rack', '>= 2.0.6', :platforms => %i[jruby_18 jruby_19 ruby_19 ruby_20 ruby_21]
|
20
20
|
gem 'rack-test'
|
21
21
|
gem 'rest-client', '~> 2.0.0', :platforms => [:jruby_18]
|
22
22
|
gem 'rspec', '~> 3.5.0'
|
23
|
-
gem 'rubocop', '>= 0.
|
23
|
+
gem 'rubocop', '>= 0.58.2', :platforms => %i[ruby_20 ruby_21 ruby_22 ruby_23 ruby_24]
|
24
24
|
gem 'tins', '~> 1.13.0', :platforms => %i[jruby_18 jruby_19 ruby_19]
|
25
25
|
end
|
26
26
|
|
data/Rakefile
CHANGED
data/lib/omniauth/auth_hash.rb
CHANGED
@@ -20,9 +20,7 @@ module OmniAuth
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def regular_writer(key, value)
|
23
|
-
if key.to_s == 'info' && value.is_a?(::Hash) && !value.is_a?(InfoHash)
|
24
|
-
value = InfoHash.new(value)
|
25
|
-
end
|
23
|
+
value = InfoHash.new(value) if key.to_s == 'info' && value.is_a?(::Hash) && !value.is_a?(InfoHash)
|
26
24
|
super
|
27
25
|
end
|
28
26
|
|
@@ -36,6 +34,7 @@ module OmniAuth
|
|
36
34
|
return "#{first_name} #{last_name}".strip if first_name? || last_name?
|
37
35
|
return nickname if nickname?
|
38
36
|
return email if email?
|
37
|
+
|
39
38
|
nil
|
40
39
|
end
|
41
40
|
|
data/lib/omniauth/builder.rb
CHANGED
@@ -33,11 +33,13 @@ module OmniAuth
|
|
33
33
|
|
34
34
|
def strategy_name_query_param
|
35
35
|
return '' unless env['omniauth.error.strategy']
|
36
|
+
|
36
37
|
"&strategy=#{env['omniauth.error.strategy'].name}"
|
37
38
|
end
|
38
39
|
|
39
40
|
def origin_query_param
|
40
41
|
return '' unless env['omniauth.origin']
|
42
|
+
|
41
43
|
"&origin=#{Rack::Utils.escape(env['omniauth.origin'])}"
|
42
44
|
end
|
43
45
|
end
|
data/lib/omniauth/form.rb
CHANGED
data/lib/omniauth/strategy.rb
CHANGED
@@ -140,6 +140,7 @@ module OmniAuth
|
|
140
140
|
|
141
141
|
self.class.args.each do |arg|
|
142
142
|
break if args.empty?
|
143
|
+
|
143
144
|
options[arg] = args.shift
|
144
145
|
end
|
145
146
|
|
@@ -187,6 +188,7 @@ module OmniAuth
|
|
187
188
|
return request_call if on_request_path? && OmniAuth.config.allowed_request_methods.include?(request.request_method.downcase.to_sym)
|
188
189
|
return callback_call if on_callback_path?
|
189
190
|
return other_phase if respond_to?(:other_phase)
|
191
|
+
|
190
192
|
@app.call(env)
|
191
193
|
end
|
192
194
|
|
@@ -268,6 +270,7 @@ module OmniAuth
|
|
268
270
|
def mock_call!(*)
|
269
271
|
return mock_request_call if on_request_path? && OmniAuth.config.allowed_request_methods.include?(request.request_method.downcase.to_sym)
|
270
272
|
return mock_callback_call if on_callback_path?
|
273
|
+
|
271
274
|
call_app!
|
272
275
|
end
|
273
276
|
|
@@ -361,6 +364,7 @@ module OmniAuth
|
|
361
364
|
def skip_info?
|
362
365
|
return false unless options.skip_info?
|
363
366
|
return true unless options.skip_info.respond_to?(:call)
|
367
|
+
|
364
368
|
options.skip_info.call(uid)
|
365
369
|
end
|
366
370
|
|
@@ -377,6 +381,7 @@ module OmniAuth
|
|
377
381
|
if options[kind].respond_to?(:call)
|
378
382
|
result = options[kind].call(env)
|
379
383
|
return nil unless result.is_a?(String)
|
384
|
+
|
380
385
|
result
|
381
386
|
else
|
382
387
|
options[kind]
|
@@ -401,7 +406,7 @@ module OmniAuth
|
|
401
406
|
options[:setup_path] || "#{path_prefix}/#{name}/setup"
|
402
407
|
end
|
403
408
|
|
404
|
-
CURRENT_PATH_REGEX = %r{/$}
|
409
|
+
CURRENT_PATH_REGEX = %r{/$}.freeze
|
405
410
|
EMPTY_STRING = ''.freeze
|
406
411
|
def current_path
|
407
412
|
@current_path ||= request.path_info.downcase.sub(CURRENT_PATH_REGEX, EMPTY_STRING)
|
data/lib/omniauth/version.rb
CHANGED
data/omniauth.gemspec
CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
require 'omniauth/version'
|
6
6
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
|
-
spec.add_dependency 'hashie', ['>= 3.4.6', '< 3.
|
8
|
+
spec.add_dependency 'hashie', ['>= 3.4.6', '< 3.7.0']
|
9
9
|
spec.add_dependency 'rack', ['>= 1.6.2', '< 3']
|
10
10
|
spec.add_development_dependency 'bundler', '~> 1.14'
|
11
11
|
spec.add_development_dependency 'rake', '~> 12.0'
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.name = 'omniauth'
|
19
19
|
spec.require_paths = %w[lib]
|
20
20
|
spec.required_rubygems_version = '>= 1.3.5'
|
21
|
-
spec.required_ruby_version = '>= 2.
|
21
|
+
spec.required_ruby_version = '>= 2.2'
|
22
22
|
spec.summary = spec.description
|
23
23
|
spec.version = OmniAuth::VERSION
|
24
24
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Bleigh
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2018-12-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: hashie
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 3.4.6
|
22
22
|
- - "<"
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: 3.
|
24
|
+
version: 3.7.0
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -31,7 +31,7 @@ dependencies:
|
|
31
31
|
version: 3.4.6
|
32
32
|
- - "<"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 3.
|
34
|
+
version: 3.7.0
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: rack
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -126,7 +126,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
126
126
|
requirements:
|
127
127
|
- - ">="
|
128
128
|
- !ruby/object:Gem::Version
|
129
|
-
version: 2.
|
129
|
+
version: '2.2'
|
130
130
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
131
|
requirements:
|
132
132
|
- - ">="
|