omniauth-bn-launcher 0.1.4 → 0.1.5

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: 5b38f5e4cd56b78e180c7d4f7ed9d7e8e17e5e549324be43f270dafef273cf2d
4
- data.tar.gz: 52c9e177626bdb0d675cfdd7f8f7bb45cb3323ab4a58eaf784b74ed10188694c
3
+ metadata.gz: 382623ccdd1fe840e00349f984a34dc2d87796c3ed10a3dfdcb46260e55a9279
4
+ data.tar.gz: 518dfae6746011004950a9874c41099f3bc32060d9f99d82650951d022f0e857
5
5
  SHA512:
6
- metadata.gz: 40c901c3df5666b08b3c4b06233a747246430b17046c545370412ae426ba13857637ca455566e7f2c1c3b453af1832a1ffe73a3fc4d88a3faf1af912dfd4d7e9
7
- data.tar.gz: eeed0a7b2d09fd80250bffefc6e37f50059f5fbe93b288a6e210f14dc84c873593d84652d105aa52d64982e75e77b35c5703fdd060b3295651d032474c00d825
6
+ metadata.gz: 8b78f01a72297501cae74ca14b63f18bd2d341bbf8a8713f9669f23c25cfc98e1a3145089d9f8b9ab553ef44ae992fc4b4be909a59dc0c6ca66a5f903ac213e1
7
+ data.tar.gz: 042efac3efdb4a71743c1dff1f2382bda46df2e1c966f2d374a5b26c9fa56afa04bee82d6ee44ef5d6cb27f3991fb36c71c178ab45717c051b538c8791fe5124
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-bn-launcher (0.1.4)
4
+ omniauth-bn-launcher (0.1.5)
5
5
  omniauth (~> 2.1, >= 2.1.0)
6
6
  omniauth-oauth2 (= 1.7.2)
7
7
 
@@ -29,7 +29,7 @@ GEM
29
29
  omniauth-oauth2 (1.7.2)
30
30
  oauth2 (~> 1.4)
31
31
  omniauth (>= 1.9, < 3)
32
- rack (2.2.3)
32
+ rack (2.2.3.1)
33
33
  rack-protection (2.2.0)
34
34
  rack
35
35
  ruby2_keywords (0.0.5)
@@ -9,17 +9,9 @@ module OmniAuth
9
9
  option :name, 'bn_launcher'
10
10
  option :customer, nil
11
11
  option :default_callback_url, nil
12
- option :customer_redirect_url, nil
13
- #Exists to support the old launcher should be removed
14
- option :checksum, nil
15
12
 
16
13
  def request_phase
17
14
  options.authorize_params[:customer] = options[:customer]
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]
22
- options.authorize_params[:checksum] = options[:checksum]
23
15
  super
24
16
  end
25
17
 
@@ -34,13 +26,12 @@ module OmniAuth
34
26
 
35
27
  def redirect_url
36
28
  # 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
29
+ if !request.params["customer"].nil?
30
+ customer_redirect_url = "#{request.scheme}://#{request.params["customer"]}.#{request.host}:#{request.port}"
31
+ customer_redirect_url + script_name + callback_path + query_string
41
32
  else
42
33
  #should be changed to customer once the old launcher is removed
43
- fail!(:gl_redirect_url_not_set)
34
+ fail!(:customer_not_set)
44
35
  end
45
36
  rescue => e
46
37
  fail!(e.message)
@@ -87,4 +78,4 @@ module OmniAuth
87
78
  end
88
79
  end
89
80
  end
90
- end
81
+ end
@@ -1,7 +1,7 @@
1
1
  module OmniAuth
2
2
  module Bn
3
3
  module Launcher
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  end
6
6
  end
7
7
  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
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - bruckwubete
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-05-20 00:00:00.000000000 Z
11
+ date: 2022-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler