bowtie-io 1.0.15 → 1.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bowtie/middleware/policy_check.rb +2 -1
- data/lib/bowtie/middleware/proxy.rb +1 -1
- data/lib/bowtie/middleware/rewrite.rb +1 -1
- data/lib/bowtie/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: a97826b0932a0dd0383188792fc77d18cbc8e218
|
4
|
+
data.tar.gz: ef4d2a1f753ddc01c0f61ee16a6ebae5c6fef061
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b043877992ad2aa6be09535cbcaf219a36b6aef092630be7d6b466a69cff00599a89fa4c0029633a3287f483d260ea4b2287f3f9f528f5a2c948289dc09741d8
|
7
|
+
data.tar.gz: 8bf6aeee6d694677d4a0c9c20e1e62098af6be899e49e32803e4d73c1bfada85d6c97e376668d5eb05591099bc444a684fe2e9e768ac0eecf41a66020eb19804
|
@@ -263,10 +263,11 @@ module Bowtie::Middleware
|
|
263
263
|
def user_profile_endpoint_url(user_id, scope)
|
264
264
|
secret_key = Bowtie::Settings['project']['secret_key'] rescue nil
|
265
265
|
secret_key ||= Bowtie::Settings['project']['environments']['development']['secret_key'] rescue nil
|
266
|
+
secret_key ||= Bowtie::Settings['client']['secret_key'] rescue nil
|
266
267
|
|
267
268
|
raise SecretKeyMissingError.new if secret_key.nil?
|
268
269
|
|
269
|
-
URI::HTTPS.build(host: Bowtie::Settings['
|
270
|
+
URI::HTTPS.build(host: Bowtie::Settings['client']['fqdn'],
|
270
271
|
userinfo: "#{Bowtie::Settings['project']['secret_key']}:",
|
271
272
|
path: "/bowtie/api/users/#{user_id}/profile.json",
|
272
273
|
query: "scope=#{scope}").to_s
|
@@ -27,7 +27,7 @@ module Bowtie::Middleware
|
|
27
27
|
|
28
28
|
class Platform < Rack::StreamingProxy::Proxy
|
29
29
|
def destination_uri(rack_request)
|
30
|
-
fqdn = Bowtie::Settings['
|
30
|
+
fqdn = Bowtie::Settings['client']['fqdn']
|
31
31
|
base_url = "https://#{fqdn}"
|
32
32
|
path = rack_request.path
|
33
33
|
|
@@ -5,7 +5,7 @@ module Bowtie::Middleware
|
|
5
5
|
class Rewrite
|
6
6
|
def initialize(app, options)
|
7
7
|
@app = app
|
8
|
-
@remote_base_url = "https://#{Bowtie::Settings['
|
8
|
+
@remote_base_url = "https://#{Bowtie::Settings['client']['fqdn']}"
|
9
9
|
@local_base_url = "http://#{options['host']}:#{options['port']}"
|
10
10
|
end
|
11
11
|
|
data/lib/bowtie/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bowtie-io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Kassemi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|