diff options
author | Melanie | 2009-09-19 18:06:25 +0100 |
---|---|---|
committer | Melanie | 2009-09-19 18:06:25 +0100 |
commit | 2f624800d37bae36cecf1bff191b646d59d86746 (patch) | |
tree | 4ece499924c10bbf8ea8f225fede0e59beab9da1 /OpenSim/Services/Connectors | |
parent | Add the skeleton of the authentication connector and the forms data requester (diff) | |
download | opensim-SC-2f624800d37bae36cecf1bff191b646d59d86746.zip opensim-SC-2f624800d37bae36cecf1bff191b646d59d86746.tar.gz opensim-SC-2f624800d37bae36cecf1bff191b646d59d86746.tar.bz2 opensim-SC-2f624800d37bae36cecf1bff191b646d59d86746.tar.xz |
Adding the deserializer for server form/xml replies
Diffstat (limited to 'OpenSim/Services/Connectors')
-rw-r--r-- | OpenSim/Services/Connectors/Authentication/AuthenticationServiceConnector.cs | 12 |
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; | |||
35 | using OpenSim.Framework.Communications; | 35 | using OpenSim.Framework.Communications; |
36 | using OpenSim.Framework.Servers.HttpServer; | 36 | using OpenSim.Framework.Servers.HttpServer; |
37 | using OpenSim.Services.Interfaces; | 37 | using OpenSim.Services.Interfaces; |
38 | using OpenSim.Server.Base; | ||
38 | using OpenMetaverse; | 39 | using OpenMetaverse; |
39 | 40 | ||
40 | namespace OpenSim.Services.Connectors | 41 | namespace 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 | ||