diff --git a/OpenSim/Server/Handlers/Integration/IntegrationServerHandler.cs b/OpenSim/Server/Handlers/Integration/IntegrationServerHandler.cs
index 8e933226d6..812d2ce65e 100644
--- a/OpenSim/Server/Handlers/Integration/IntegrationServerHandler.cs
+++ b/OpenSim/Server/Handlers/Integration/IntegrationServerHandler.cs
@@ -78,58 +78,25 @@ namespace OpenSim.Server.Handlers.Integration
switch (command)
{
// agent
- case "verify_agent_ssession":
- return HandleVerifyAgentSession(request);
+ case "foo":
+ break;
- case "verify_agent_region":
- return FailureResult("Not Implemented");
+ case "bar":
+ break;
default:
- m_log.DebugFormat("[IntegrationHandler]: unknown method {0} request {1}", command.Length, command);
+ m_log.DebugFormat("[INTEGRATION HANDLER]: unknown method {0} request {1}", command.Length, command);
return FailureResult("IntegrationHandler: Unrecognized method requested!");
}
}
catch (Exception e)
{
- m_log.DebugFormat("[IntegrationHandler]: Exception {0}", e);
+ m_log.DebugFormat("[INTEGRATION HANDLER]: Exception {0}", e);
}
return FailureResult();
}
- #region Handlers
- ///
- /// Verifies the agent to external applications.
- ///
- ///
- /// UUID of the agent.
- ///
- ///
- /// request - Send SecureSessionID and optionally Encoding=xml for xml Output
- ///
- byte[] HandleVerifyAgentSession(OSDMap request)
- {
- UUID s_session = UUID.Zero;
-
- if (!request.ContainsKey("SecureSessionID"))
- return FailureResult();
-
- if (!UUID.TryParse(request["SecureSessionID"].AsString(), out s_session))
- return FailureResult();
-
- PresenceInfo pinfo = m_IntegrationService.VerifyAgent(s_session);
-
- OSDMap result = new OSDMap();
-
- if (pinfo == null)
- result["agent_id"] = OSD.FromUUID(UUID.Zero);
- else
- result["agent_id"] = OSD.FromString(pinfo.UserID.ToString());
-
- return Encoding.UTF8.GetBytes(OSDParser.SerializeJsonString(result));
- }
- #endregion Handlers
-
#region utility
private byte[] FailureResult()
{
diff --git a/OpenSim/Services/IntegrationService/IntegrationService.cs b/OpenSim/Services/IntegrationService/IntegrationService.cs
index 1017ab5f3e..07d527f118 100644
--- a/OpenSim/Services/IntegrationService/IntegrationService.cs
+++ b/OpenSim/Services/IntegrationService/IntegrationService.cs
@@ -49,12 +49,5 @@ namespace OpenSim.Services.IntegrationService
m_log.InfoFormat("[INTEGRATION SERVICE]: Loaded");
}
-
- #region IIntegrationService implementation
- public PresenceInfo VerifyAgent(UUID SecureSessionID)
- {
- return m_PresenceService.VerifyAgent(SecureSessionID);
- }
- #endregion
}
}
\ No newline at end of file
diff --git a/OpenSim/Services/IntegrationService/IntegrationServiceBase.cs b/OpenSim/Services/IntegrationService/IntegrationServiceBase.cs
index fa27a62a7c..ed2d9d907c 100644
--- a/OpenSim/Services/IntegrationService/IntegrationServiceBase.cs
+++ b/OpenSim/Services/IntegrationService/IntegrationServiceBase.cs
@@ -46,7 +46,7 @@ namespace OpenSim.Services.IntegrationService
[TypeExtensionPoint (Path="/OpenSim/IntegrationService", Name="IntegrationService")]
public interface IntegrationPlugin
{
- void Init(IConfigSource config);
+ void Init(IConfigSource config, IConfig data);
string Name{ get; }
string ConfigName { get; }
}
@@ -93,6 +93,9 @@ namespace OpenSim.Services.IntegrationService
return;
}
+ // Send the default data service
+ IConfig DataService = config.Configs["DatabaseService"];
+
// Add a command to the console
if (MainConsole.Instance != null)
{
@@ -116,7 +119,7 @@ namespace OpenSim.Services.IntegrationService
// We maintain a configuration per-plugin to enhance modularity
// If ConfigSource is null, we will get the default from the repo
// and write it to our directory
- cmd.Init (ConfigSource);
+ cmd.Init (ConfigSource, DataService);
server.AddStreamHandler((IRequestHandler)cmd);
m_log.InfoFormat("[INTEGRATION SERVICE]: Loading IntegrationService plugin {0}", cmd.Name);
}
diff --git a/OpenSim/Services/Interfaces/IIntegrationService.cs b/OpenSim/Services/Interfaces/IIntegrationService.cs
index f38008d9e3..0e080b941b 100644
--- a/OpenSim/Services/Interfaces/IIntegrationService.cs
+++ b/OpenSim/Services/Interfaces/IIntegrationService.cs
@@ -36,7 +36,6 @@ namespace OpenSim.Services.Interfaces
{
public interface IIntegrationService
{
- PresenceInfo VerifyAgent(UUID SecretSessionID);
}
}