restpack-web 0.1.36 → 0.1.37
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.
- data/lib/restpack-web/context.rb +5 -5
- data/lib/restpack-web/version.rb +1 -1
- metadata +1 -1
data/lib/restpack-web/context.rb
CHANGED
|
@@ -21,15 +21,15 @@ module RestPack
|
|
|
21
21
|
@user.present?
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
-
def home_domain
|
|
25
|
-
"www.#{root_domain}"
|
|
24
|
+
def home_domain
|
|
25
|
+
@application.home_domain || "www.#{root_domain}"
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
-
def auth_domain
|
|
29
|
-
"auth.#{root_domain}"
|
|
28
|
+
def auth_domain
|
|
29
|
+
@application.auth_domain || "auth.#{root_domain}"
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
def logout_url(next_url = nil)
|
|
32
|
+
def logout_url(next_url = nil) #TODO: GJ: whitelist the next_url
|
|
33
33
|
next_url ||= "http://#{home_domain}/"
|
|
34
34
|
"http://#{auth_domain}/auth/logout?next=#{next_url}"
|
|
35
35
|
end
|
data/lib/restpack-web/version.rb
CHANGED