mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 10:46:00 +08:00
Fix XBakes simulator-side authentication regression failure
Unlike the other connectors, XBakes uses a service auth retrieved from ServiceAuth.Create() and not code inherited from BaseServiceConnector.
Fixes regression from 7d3bafd5 (Wed 4 Mar 2015) where the new CompoundAuthenticator did not implement IServiceAuth.AddAuthorization()
This commit is contained in:
@@ -27,13 +27,16 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using System.Reflection;
|
||||
using log4net;
|
||||
using Nini.Config;
|
||||
|
||||
namespace OpenSim.Framework.ServiceAuth
|
||||
{
|
||||
public class ServiceAuth
|
||||
{
|
||||
// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
public static IServiceAuth Create(IConfigSource config, string section)
|
||||
{
|
||||
CompoundAuthentication compoundAuth = new CompoundAuthentication();
|
||||
@@ -53,6 +56,9 @@ namespace OpenSim.Framework.ServiceAuth
|
||||
break;
|
||||
}
|
||||
|
||||
// foreach (IServiceAuth auth in compoundAuth.GetAuthentors())
|
||||
// m_log.DebugFormat("[SERVICE AUTH]: Configured authenticator {0}", auth.Name);
|
||||
|
||||
if (compoundAuth.Count > 0)
|
||||
return compoundAuth;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user