omniauth 2.0.2 → 2.0.3

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
  SHA256:
3
- metadata.gz: 0fdf824504c682674830ea2d69b88977ca4be10f49f79130b3f75d324c7806d6
4
- data.tar.gz: 2dc858d06ff250e7e4bef4d581bf64fb70d3a2baccbebcb53f81ff24e1023797
3
+ metadata.gz: 3be9f7e5731f11a7a1895e8a3891d9f2431ed0eca0881e36d7de7c44a7b89268
4
+ data.tar.gz: 751f6f3a75e0d62b30f9a998fdc41af6166f02c90002b9987cc893d1503fbb38
5
5
  SHA512:
6
- metadata.gz: 655b84ed20ad9b5c6a402e84c2333eab3e2a681d9aa4ba67f754448d02031a260fb7868b2dfa25016ed941a123aa4b991d0affbffa5170ee440d389c650b4316
7
- data.tar.gz: 64a646106221782aff31af2bcab225b79314d8d90c0072a24488633e01d049721a1231959d424135f59d052add7bc47780e7f2affac44acd46e1eb9b0a1f5847
6
+ metadata.gz: 7c5715a5d05241734e86c7c8d2a64b884010d5e1ba977197d7a365872ecac77b6738a13ef3c469344c6c16e901ce767190a97d1e1e1da4248ded5bb807321c5d
7
+ data.tar.gz: 66f2008e6e0dda83c388b2d03e0b9b757707cd194c2eb9c7f0049decbc021ab124c757dadfe194f84c32467d0061a6b08fb7ce0df66e701a5101da20044035a3
data/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  [codeclimate]: https://codeclimate.com/github/omniauth/omniauth
11
11
  [coveralls]: https://coveralls.io/r/omniauth/omniauth
12
12
 
13
- This is the documentation for OmniAuth v2.0.2.
13
+ This is the documentation for OmniAuth [v2.0.3](https://github.com/omniauth/omniauth/tree/v2.0.3).
14
14
 
15
15
  ## An Introduction
16
16
  OmniAuth is a library that standardizes multi-provider authentication for
@@ -193,6 +193,8 @@ module OmniAuth
193
193
  return callback_call if on_callback_path?
194
194
  return other_phase if respond_to?(:other_phase)
195
195
  rescue StandardError => e
196
+ raise e if env.delete('omniauth.error.app')
197
+
196
198
  return fail!(e.message, e)
197
199
  end
198
200
 
@@ -302,6 +304,8 @@ module OmniAuth
302
304
  return mock_request_call if on_request_path? && OmniAuth.config.allowed_request_methods.include?(request.request_method.downcase.to_sym)
303
305
  return mock_callback_call if on_callback_path?
304
306
  rescue StandardError => e
307
+ raise e if env.delete('omniauth.error.app')
308
+
305
309
  return fail!(e.message, e)
306
310
  end
307
311
 
@@ -462,6 +466,9 @@ module OmniAuth
462
466
 
463
467
  def call_app!(env = @env)
464
468
  @app.call(env)
469
+ rescue StandardError => e
470
+ env['omniauth.error.app'] = true
471
+ raise e
465
472
  end
466
473
 
467
474
  def full_host
@@ -1,3 +1,3 @@
1
1
  module OmniAuth
2
- VERSION = '2.0.2'.freeze
2
+ VERSION = '2.0.3'.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: 2.0.2
4
+ version: 2.0.3
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: 2021-02-02 00:00:00.000000000 Z
13
+ date: 2021-02-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hashie