omniauth 1.7.0 → 1.7.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 +4 -4
- data/lib/omniauth/strategy.rb +6 -4
- data/lib/omniauth/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fed7b1b77079ded777d579bc45e47a4993237ff4
|
4
|
+
data.tar.gz: a42f6dec9e4d1dcd5db1dfeabaff1fa0c57dd613
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6d2dab85d9609847fdf033f38bd1ebf3c068ec986c0a140c287c11b2d60013e15405a60b75049d673d51872facf613ad72240450058495cb67653b32447927b
|
7
|
+
data.tar.gz: 2dba76e355906cc3034a0c04559e5c939f79c2eac2d730f2618fb98b9ccd4e69410aeee5a486f43b5a1e7b5cd79bdecad8494c41d00056db33c5a1f58f1b181e
|
data/lib/omniauth/strategy.rb
CHANGED
@@ -276,10 +276,12 @@ module OmniAuth
|
|
276
276
|
|
277
277
|
session['omniauth.params'] = request.GET
|
278
278
|
OmniAuth.config.before_request_phase.call(env) if OmniAuth.config.before_request_phase
|
279
|
-
if
|
280
|
-
|
281
|
-
|
282
|
-
|
279
|
+
if options.origin_param
|
280
|
+
if request.params[options.origin_param]
|
281
|
+
session['omniauth.origin'] = request.params[options.origin_param]
|
282
|
+
elsif env['HTTP_REFERER'] && !env['HTTP_REFERER'].match(/#{request_path}$/)
|
283
|
+
session['omniauth.origin'] = env['HTTP_REFERER']
|
284
|
+
end
|
283
285
|
end
|
284
286
|
|
285
287
|
redirect(callback_url)
|
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: 1.7.
|
4
|
+
version: 1.7.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-
|
13
|
+
date: 2017-10-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: hashie
|