mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Don't log http auth details by default.
This is a security risk when people distribute logs for debug purposes. If necessary the information can be retrieved via config console commands. Relates to http://opensimulator.org/mantis/view.php?id=7501
This commit is contained in:
@@ -38,7 +38,7 @@ namespace OpenSim.Framework.ServiceAuth
|
||||
{
|
||||
public class BasicHttpAuthentication : IServiceAuth
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
public string Name { get { return "BasicHttp"; } }
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace OpenSim.Framework.ServiceAuth
|
||||
byte[] encData_byte = Util.UTF8.GetBytes(str);
|
||||
|
||||
m_CredentialsB64 = Convert.ToBase64String(encData_byte);
|
||||
m_log.DebugFormat("[HTTP BASIC AUTH]: {0} {1} [{2}]", m_Username, m_Password, section);
|
||||
// m_log.DebugFormat("[HTTP BASIC AUTH]: {0} {1} [{2}]", m_Username, m_Password, section);
|
||||
}
|
||||
|
||||
public void AddAuthorization(NameValueCollection headers)
|
||||
|
||||
Reference in New Issue
Block a user