aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services
diff options
context:
space:
mode:
authorMelanie2009-09-19 18:06:25 +0100
committerMelanie2009-09-19 18:06:25 +0100
commit2f624800d37bae36cecf1bff191b646d59d86746 (patch)
tree4ece499924c10bbf8ea8f225fede0e59beab9da1 /OpenSim/Services
parentAdd the skeleton of the authentication connector and the forms data requester (diff)
downloadopensim-SC_OLD-2f624800d37bae36cecf1bff191b646d59d86746.zip
opensim-SC_OLD-2f624800d37bae36cecf1bff191b646d59d86746.tar.gz
opensim-SC_OLD-2f624800d37bae36cecf1bff191b646d59d86746.tar.bz2
opensim-SC_OLD-2f624800d37bae36cecf1bff191b646d59d86746.tar.xz
Adding the deserializer for server form/xml replies
Diffstat (limited to 'OpenSim/Services')
-rw-r--r--OpenSim/Services/Connectors/Authentication/AuthenticationServiceConnector.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Services/Connectors/Authentication/AuthenticationServiceConnector.cs b/OpenSim/Services/Connectors/Authentication/AuthenticationServiceConnector.cs
index 053d27c..35f96a1 100644
--- a/OpenSim/Services/Connectors/Authentication/AuthenticationServiceConnector.cs
+++ b/OpenSim/Services/Connectors/Authentication/AuthenticationServiceConnector.cs
@@ -35,6 +35,7 @@ using OpenSim.Framework;
35using OpenSim.Framework.Communications; 35using OpenSim.Framework.Communications;
36using OpenSim.Framework.Servers.HttpServer; 36using OpenSim.Framework.Servers.HttpServer;
37using OpenSim.Services.Interfaces; 37using OpenSim.Services.Interfaces;
38using OpenSim.Server.Base;
38using OpenMetaverse; 39using OpenMetaverse;
39 40
40namespace OpenSim.Services.Connectors 41namespace OpenSim.Services.Connectors
@@ -83,6 +84,17 @@ namespace OpenSim.Services.Connectors
83 84
84 public string Authenticate(UUID principalID, string password, int lifetime) 85 public string Authenticate(UUID principalID, string password, int lifetime)
85 { 86 {
87 Dictionary<string, string> sendData = new Dictionary<string, string>();
88 sendData["LIFETIME"] = lifetime.ToString();
89 sendData["PRINCIPAL"] = principalID.ToString();
90 sendData["PASSWORD"] = password;
91
92 sendData["METHOD"] = "authenticate";
93
94 string reply = SynchronousRestFormsRequester.MakeRequest("POST",
95 m_ServerURI + "/auth/plain",
96 ServerUtils.BuildQueryString(sendData));
97
86 return String.Empty; 98 return String.Empty;
87 } 99 }
88 100