support services subdomain

- all services are on the 'services' domain, share the same cookie
This commit is contained in:
Min RK
2016-09-02 13:21:46 +02:00
parent 9a002c2445
commit c3111b04bb
5 changed files with 78 additions and 53 deletions

View File

@@ -173,7 +173,7 @@ class User(HasTraits):
@property
def host(self):
"""Get the *host* for my server (domain[:port])"""
"""Get the *host* for my server (proto://domain[:port])"""
# FIXME: escaped_name probably isn't escaped enough in general for a domain fragment
parsed = urlparse(self.settings['subdomain_host'])
h = '%s://%s.%s' % (parsed.scheme, self.escaped_name, parsed.netloc)