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 +4 -4
- data/README.md +1 -1
- data/lib/omniauth/strategy.rb +7 -0
- data/lib/omniauth/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3be9f7e5731f11a7a1895e8a3891d9f2431ed0eca0881e36d7de7c44a7b89268
|
4
|
+
data.tar.gz: 751f6f3a75e0d62b30f9a998fdc41af6166f02c90002b9987cc893d1503fbb38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
data/lib/omniauth/strategy.rb
CHANGED
@@ -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
|
data/lib/omniauth/version.rb
CHANGED
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.
|
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-
|
13
|
+
date: 2021-02-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: hashie
|