summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei Mihai <smihai@entrouvert.com>2015-05-26 14:47:35 (GMT)
committerSerghei Mihai <smihai@entrouvert.com>2015-05-27 08:30:13 (GMT)
commit1e02bc5e7f198c123695f84016dc5f2100c23307 (patch)
tree03887b7397dc42d8c22fe7f5a0a6ef5721e8f3cc
parent55f2a6be4391337cebb61a14950bbeb700bc409c (diff)
downloadauthentic2-beid-1e02bc5e7f198c123695f84016dc5f2100c23307.zip
authentic2-beid-1e02bc5e7f198c123695f84016dc5f2100c23307.tar.gz
authentic2-beid-1e02bc5e7f198c123695f84016dc5f2100c23307.tar.bz2
refactor x509 url computing
-rw-r--r--src/authentic2_beid/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/authentic2_beid/util.py b/src/authentic2_beid/util.py
index 34694e3..bfe814b 100644
--- a/src/authentic2_beid/util.py
+++ b/src/authentic2_beid/util.py
@@ -11,7 +11,7 @@ class SSLInfo(BaseSSLInfo):
self.read_env(dict(ssl_headers))
def get_x509_url(request):
- return 'https://%s:%s' % (request.get_host(),
+ return 'https://%s:%s' % (request.get_host().split(':')[0],
app_settings.AUTH_PORT)
def get_user_names(ssl_info):