restpack-web 0.1.36 → 0.1.37
Sign up to get free protection for your applications and to get access to all the features.
- 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