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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b18b75c608d0ea912bbfeff72fdc7eda732a232fbef41f4c8f2446df67349c72
4
- data.tar.gz: 2ce4a3663130f1624d864132a03cbda6dee242cd1e908aff01879988f79b0c54
3
+ metadata.gz: 469bdeea31b95c56188b4f5585dd50cabcc8b38b109862d2cd4aaf362622930f
4
+ data.tar.gz: b2289ba995b2b0e273c392f839b460ba0b31f7f4813ebb701e6b44442751ac87
5
5
  SHA512:
6
- metadata.gz: 7aaaeecb0557e2b7cb5c864962207eee245f221fa2bb78b8d15f822206d7dcd8230ac69affbfe06e0909f9de9e6d97627646b215dafe35adf811f3f31c11b76e
7
- data.tar.gz: 76284feaba860030b98265f943bed36299d22efb74200e246f48868c92d445343e29bff97a558d9ebe105b301c1dad9ff8d74e794316ca5765c0cb95cbe92b0c
6
+ metadata.gz: a41e8d8703cba6dad796e46f5ac1905647ee8e463add077a5636adc4f2b9290b26210a89627ea8ebd8ebc114aa57ca685449a8c02fb8f4f0786781cfa15dfb54
7
+ data.tar.gz: 03754c98b53a6b3d7a7203dc716ec95c5e97dd591267a70e6bea18b2c37b993b7b0e45daecb5e5189b899ae182b4e5b1d4ff6315a2860dd18e56215f5afe5f5c
@@ -1,7 +1,7 @@
1
1
  module OmniAuth
2
2
  module Bn
3
3
  module Launcher
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
7
7
  end
@@ -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 :gl_redirect_url, nil
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[:gl_redirect_url] = options[:gl_redirect_url]
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
- if request.params["gl_redirect_url"].nil?
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.0
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: 2018-07-10 00:00:00.000000000 Z
11
+ date: 2019-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler