wcc-auth 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57d01159ce3ab3ab2d18212a399143200958daf2
4
- data.tar.gz: 65c518297631921129094d974ffa4772c62b5db5
3
+ metadata.gz: b1e50254917d5510fdf6c8faafe55212618eec83
4
+ data.tar.gz: c36503c98bdf1a2bfdfc3f71e91ca05082f6dee9
5
5
  SHA512:
6
- metadata.gz: 52fd9725f9e488c655b6087718558887c8fb75167c2fe7ddb6546ce22e20f7a95a615e5d9508474ac3bce764c439e1c65514cad176364eceaa5f3b45c8e2f6e0
7
- data.tar.gz: 5f42586214cb2495270f7fc8a3c2ff84289c01d8aae61c0c06f97262b1204d548bc7e5b50141e003c9fcfcd93e548c01f484b0b023f2785eddded9e1a3f91c2c
6
+ metadata.gz: 84de7ee3f83e943439303e7b5991140eddf211e49d11ede4bb4207d6b7824e7b01891a32b167908729e44a9e96a205588337cf0e0b4e8e5976e253977a22a715
7
+ data.tar.gz: f0a58d742eadef87c1bd77cb8701759dda8bac0ae5c418c5fe7a46db54d24fe3e2d94f955def564c259b260831fd1dbc5ba171db48c81b8d6905a45bd3b09c35
@@ -10,11 +10,11 @@ WCC::Auth::Config = Struct.new(:environment,
10
10
  :authorize_params) do
11
11
 
12
12
  def authorize_site
13
- self[:authorize_site] || default_authorize_site
13
+ self[:authorize_site] || ENV['WCC_AUTHORIZE_SITE'] || default_authorize_site
14
14
  end
15
15
 
16
16
  def authorize_path
17
- self[:authorize_path] || "/oauth/authorize"
17
+ self[:authorize_path] || ENV['WCC_AUTHORIZE_PATH'] || "/oauth/authorize"
18
18
  end
19
19
 
20
20
  def authorize_params
@@ -22,7 +22,7 @@ WCC::Auth::Config = Struct.new(:environment,
22
22
  end
23
23
 
24
24
  def app_url
25
- self[:app_url] || default_app_url
25
+ self[:app_url] || ENV['APP_URL'] || default_app_url
26
26
  end
27
27
 
28
28
  def app_url_protocol
@@ -1,5 +1,5 @@
1
1
  module WCC
2
2
  module Auth
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wcc-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Petticrew