From 1e02bc5e7f198c123695f84016dc5f2100c23307 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Tue, 26 May 2015 16:47:35 +0200 Subject: [PATCH] refactor x509 url computing --- src/authentic2_beid/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):