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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d718168f186ebd4841de2736a6548d4d2c49171e
4
- data.tar.gz: e7beede8ef875b1746fae38d3f18e172894216a0
3
+ metadata.gz: a97826b0932a0dd0383188792fc77d18cbc8e218
4
+ data.tar.gz: ef4d2a1f753ddc01c0f61ee16a6ebae5c6fef061
5
5
  SHA512:
6
- metadata.gz: ce723ba4288914e76104028b527b8f8dcd6138301a89eebad98986650173ce397d8a35ff615eb425db4c3e78eb41ad7145beda0f7c1d9e778a7e8fde1224faea
7
- data.tar.gz: e7b39b5556d545c7ffdd5f0998939060313797221583c7a9260148ccb1dff96346bc1a6349cb9f480e8368680d0fc1ae309454c005edb522827c184fdc736b10
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['project']['fqdn']['development'],
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['project']['fqdn']['development']
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['project']['fqdn']['development']}"
8
+ @remote_base_url = "https://#{Bowtie::Settings['client']['fqdn']}"
9
9
  @local_base_url = "http://#{options['host']}:#{options['port']}"
10
10
  end
11
11
 
@@ -1,3 +1,3 @@
1
1
  module Bowtie
2
- VERSION = '1.0.15'
2
+ VERSION = '1.0.16'
3
3
  end
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.15
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-10-07 00:00:00.000000000 Z
11
+ date: 2015-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll