omniauth-bn-launcher 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth-bn-launcher/version.rb +1 -1
- data/lib/omniauth/strategies/bn_launcher.rb +13 -4
- 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: 469bdeea31b95c56188b4f5585dd50cabcc8b38b109862d2cd4aaf362622930f
|
4
|
+
data.tar.gz: b2289ba995b2b0e273c392f839b460ba0b31f7f4813ebb701e6b44442751ac87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a41e8d8703cba6dad796e46f5ac1905647ee8e463add077a5636adc4f2b9290b26210a89627ea8ebd8ebc114aa57ca685449a8c02fb8f4f0786781cfa15dfb54
|
7
|
+
data.tar.gz: 03754c98b53a6b3d7a7203dc716ec95c5e97dd591267a70e6bea18b2c37b993b7b0e45daecb5e5189b899ae182b4e5b1d4ff6315a2860dd18e56215f5afe5f5c
|
@@ -9,12 +9,16 @@ module OmniAuth
|
|
9
9
|
option :name, 'bn_launcher'
|
10
10
|
option :customer, nil
|
11
11
|
option :default_callback_url, nil
|
12
|
-
option :
|
12
|
+
option :customer_redirect_url, nil
|
13
|
+
#Exists to support the old launcher should be removed
|
13
14
|
option :checksum, nil
|
14
15
|
|
15
16
|
def request_phase
|
16
17
|
options.authorize_params[:customer] = options[:customer]
|
17
|
-
options.authorize_params[:
|
18
|
+
options.authorize_params[:customer_redirect_url] = options[:customer_redirect_url]
|
19
|
+
|
20
|
+
# These options exists to support the old launcher and should eventually be removed
|
21
|
+
options.authorize_params[:gl_redirect_url] = options[:customer_redirect_url]
|
18
22
|
options.authorize_params[:checksum] = options[:checksum]
|
19
23
|
super
|
20
24
|
end
|
@@ -29,10 +33,15 @@ module OmniAuth
|
|
29
33
|
end
|
30
34
|
|
31
35
|
def redirect_url
|
32
|
-
|
36
|
+
# Should remove the gl_redirect_url has that is used for the old launcher
|
37
|
+
if !request.params["gl_redirect_url"].nil?
|
38
|
+
request.params["gl_redirect_url"] + script_name + callback_path + query_string
|
39
|
+
elsif !request.params["customer_redirect_url"].nil?
|
40
|
+
request.params["customer_redirect_url"] + script_name + callback_path + query_string
|
41
|
+
else
|
42
|
+
#should be changed to customer once the old launcher is removed
|
33
43
|
fail!(:gl_redirect_url_not_set)
|
34
44
|
end
|
35
|
-
request.params["gl_redirect_url"] + script_name + callback_path + query_string
|
36
45
|
rescue => e
|
37
46
|
fail!(e.message)
|
38
47
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-bn-launcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bruckwubete
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|