aboutsummaryrefslogtreecommitdiff
path: root/rhodecode
diff options
context:
space:
mode:
authorMarcin Kuzminski <marcin@python-works.com>2013-01-19 16:28:18 +0100
committerMarcin Kuzminski <marcin@python-works.com>2013-01-19 16:28:18 +0100
commitefab71422833eb2b5021a19e3e3488d835c27f18 (patch)
tree0d60460c86574692e2324bd812fd8f1b9c05bd32 /rhodecode
parent10c76eb34f867fb3885fd40d1ae91a95475ec4c5 (diff)
added some more logging into get_container_username function
--HG-- branch : beta extra : amend_source : 6c67184858233e0669b79947f3744ab762a041d0
Diffstat (limited to 'rhodecode')
-rw-r--r--rhodecode/lib/auth.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/rhodecode/lib/auth.py b/rhodecode/lib/auth.py
index 07409459..c67e343a 100644
--- a/rhodecode/lib/auth.py
+++ b/rhodecode/lib/auth.py
@@ -276,15 +276,17 @@ def get_container_username(environ, config):
if str2bool(config.get('container_auth_enabled', False)):
from paste.httpheaders import REMOTE_USER
username = REMOTE_USER(environ)
+ log.debug('extracted REMOTE_USER:%s' % (username))
if not username and str2bool(config.get('proxypass_auth_enabled', False)):
username = environ.get('HTTP_X_FORWARDED_USER')
+ log.debug('extracted HTTP_X_FORWARDED_USER:%s' % (username))
if username:
# Removing realm and domain from username
username = username.partition('@')[0]
username = username.rpartition('\\')[2]
- log.debug('Received username %s from container' % username)
+ log.debug('Received username %s from container' % username)
return username