omniauth 1.6.0 → 1.6.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3cccf2cece86480c5d9904baf73c1425b186bb48
4
- data.tar.gz: be26db1136cc2fa234b6599525328d7f4ee052a2
3
+ metadata.gz: 2f9747fdf4d26b313c332d677cd38652b7d4c6de
4
+ data.tar.gz: 62a3ea9d5e204ab8f00f42d7333d6aa64eed634d
5
5
  SHA512:
6
- metadata.gz: 75d6812700ed6fb651401d0233b64c1394e94688299dbe826592514e3c4713fd6ea1df17ba7395330fb01865894eb1393de1c0453854d7898928085a504ba4e5
7
- data.tar.gz: 20c23e7f2ef3c67898a3bb313ded1919f16a32eb34872601c852321405f48658b1f311ad9ac20a607a93e70f63080ca1b20f21d75995784655abd64007831054
6
+ metadata.gz: d513f115eaa738232d437c33d6fb28ff8b13d4a75b8e0e0a03ad33425725eb6aced21788a589e1151442b24ecc4bbfad36d7e742a3af65518109b1f752a745d5
7
+ data.tar.gz: b1aaa8309622e7980eb0b2568c77c9e23ed0233c001c85254ea39279b8b8d7fd973743aa8055ca6822b45db68174b5ecbe24aff17b967e7226ef5ca1b61b0977
data/Gemfile CHANGED
@@ -21,7 +21,6 @@ group :test do
21
21
  gem 'rest-client', '~> 2.0.0', :platforms => [:jruby_18]
22
22
  gem 'rspec', '~> 3.5.0'
23
23
  gem 'rubocop', '>= 0.47', :platforms => [:ruby_20, :ruby_21, :ruby_22, :ruby_23, :ruby_24]
24
- gem 'simplecov', '>= 0.13'
25
24
  gem 'tins', '~> 1.13.0', :platforms => [:jruby_18, :jruby_19, :ruby_19]
26
25
  end
27
26
 
@@ -202,8 +202,6 @@ module OmniAuth
202
202
  log :info, 'Request phase initiated.'
203
203
  # store query params from the request url, extracted in the callback_phase
204
204
  session['omniauth.params'] = request.GET
205
- # store query headers from the request url, extracted in the callback_phase
206
- session['omniauth.headers'] = headers
207
205
  OmniAuth.config.before_request_phase.call(env) if OmniAuth.config.before_request_phase
208
206
  if options.form.respond_to?(:call)
209
207
  log :info, 'Rendering form from supplied Rack endpoint.'
@@ -228,7 +226,6 @@ module OmniAuth
228
226
  @env['omniauth.origin'] = session.delete('omniauth.origin')
229
227
  @env['omniauth.origin'] = nil if env['omniauth.origin'] == ''
230
228
  @env['omniauth.params'] = session.delete('omniauth.params') || {}
231
- @env['omniauth.headers'] = session.delete('omniauth.headers') || {}
232
229
  OmniAuth.config.before_callback_phase.call(@env) if OmniAuth.config.before_callback_phase
233
230
  callback_phase
234
231
  end
@@ -272,7 +269,6 @@ module OmniAuth
272
269
  setup_phase
273
270
 
274
271
  session['omniauth.params'] = request.GET
275
- session['omniauth.headers'] = headers
276
272
  OmniAuth.config.before_request_phase.call(env) if OmniAuth.config.before_request_phase
277
273
  if request.params['origin']
278
274
  @env['rack.session']['omniauth.origin'] = request.params['origin']
@@ -288,7 +284,6 @@ module OmniAuth
288
284
  @env['omniauth.origin'] = session.delete('omniauth.origin')
289
285
  @env['omniauth.origin'] = nil if env['omniauth.origin'] == ''
290
286
  @env['omniauth.params'] = session.delete('omniauth.params') || {}
291
- @env['omniauth.headers'] = session.delete('omniauth.headers') || {}
292
287
 
293
288
  mocked_auth = OmniAuth.mock_auth_for(name.to_s)
294
289
  if mocked_auth.is_a?(Symbol)
@@ -507,10 +502,5 @@ module OmniAuth
507
502
  (request.env['HTTP_X_FORWARDED_PROTO'] && request.env['HTTP_X_FORWARDED_PROTO'].split(',')[0] == 'https') ||
508
503
  request.env['rack.url_scheme'] == 'https'
509
504
  end
510
-
511
- def headers
512
- headers = env.select { |key, _value| key.start_with? 'HTTP_' }
513
- Hash[headers.map { |key, value| [key.sub(/^HTTP_/, ''), value] }]
514
- end
515
505
  end
516
506
  end
@@ -1,3 +1,3 @@
1
1
  module OmniAuth
2
- VERSION = '1.6.0'.freeze
2
+ VERSION = '1.6.1'.freeze
3
3
  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.6.0
4
+ version: 1.6.1
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: 2017-02-17 00:00:00.000000000 Z
13
+ date: 2017-02-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hashie