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 +4 -4
- data/lib/wcc/auth/config.rb +3 -3
- data/lib/wcc/auth/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b1e50254917d5510fdf6c8faafe55212618eec83
|
|
4
|
+
data.tar.gz: c36503c98bdf1a2bfdfc3f71e91ca05082f6dee9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 84de7ee3f83e943439303e7b5991140eddf211e49d11ede4bb4207d6b7824e7b01891a32b167908729e44a9e96a205588337cf0e0b4e8e5976e253977a22a715
|
|
7
|
+
data.tar.gz: f0a58d742eadef87c1bd77cb8701759dda8bac0ae5c418c5fe7a46db54d24fe3e2d94f955def564c259b260831fd1dbc5ba171db48c81b8d6905a45bd3b09c35
|
data/lib/wcc/auth/config.rb
CHANGED
|
@@ -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
|
data/lib/wcc/auth/version.rb
CHANGED