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 +4 -4
- data/Gemfile.lock +2 -2
- data/lib/omniauth/strategies/bn_launcher.rb +5 -14
- data/lib/omniauth-bn-launcher/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: 382623ccdd1fe840e00349f984a34dc2d87796c3ed10a3dfdcb46260e55a9279
|
4
|
+
data.tar.gz: 518dfae6746011004950a9874c41099f3bc32060d9f99d82650951d022f0e857
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
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["
|
38
|
-
request.params["
|
39
|
-
|
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!(:
|
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
|
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.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-
|
11
|
+
date: 2022-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|