Adding information to help track down remote authentication issues

This commit is contained in:
Ryan
2015-10-01 12:08:43 -04:00
parent c133078b60
commit 76da3df1cc
@@ -4,6 +4,8 @@ Middleware for handling $REMOTE_USER if use_remote_user is enabled.
import socket
from galaxy.util import safe_str_cmp
import logging
log = logging.getLogger(__name__)
errorpage = """
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
@@ -143,6 +145,10 @@ class RemoteUser( object ):
# The API handles its own authentication via keys
return self.app( environ, start_response )
else:
log.debug("Unable to identify user. %s not found" % self.remote_user_header)
for key in environ.keys():
log.debug("%s = %s" % (key, environ.get(key)))
title = "Access to Galaxy is denied"
message = """
Galaxy is configured to authenticate users via an external