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.
@@ -21,15 +21,15 @@ module RestPack
21
21
  @user.present?
22
22
  end
23
23
 
24
- def home_domain #TODO: GJ: can be overridden in config
25
- "www.#{root_domain}"
24
+ def home_domain
25
+ @application.home_domain || "www.#{root_domain}"
26
26
  end
27
27
 
28
- def auth_domain #TODO: GJ: can be overridden in config
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
@@ -1,5 +1,5 @@
1
1
  module RestPack
2
2
  module Web
3
- VERSION = "0.1.36"
3
+ VERSION = "0.1.37"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restpack-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.36
4
+ version: 0.1.37
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: