Commit 4b288bda authored by Dimitri Papadopoulos's avatar Dimitri Papadopoulos
Browse files

[views] improve debug message

Make it clearer when the x-remote-user header is missing.
parent a07bcb05e40c
......@@ -47,6 +47,9 @@ class XRemoteUserRetriever(authentication.WebAuthInfoRetreiver):
self.debug('web authenticator building auth info')
try:
login = req.get_header('x-remote-user', None)
if login is None:
self.debug('http header is missing x-remote-user')
raise authentication.NoAuthInfo('missing x-remote-user')
self.debug('encoding info for %s', login)
_secret = self._cw.config._secret
cyphr = build_cypher(_secret)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment