diff options
author | Melanie | 2009-09-19 18:14:22 +0100 |
---|---|---|
committer | Melanie | 2009-09-19 18:14:22 +0100 |
commit | 0c364ee2853f5d33df67e4a340734dfe7c6c2398 (patch) | |
tree | 566513c96d133eb61ed6f4cabc5768b22a408564 /OpenSim/Services | |
parent | Adding the deserializer for server form/xml replies (diff) | |
download | opensim-SC_OLD-0c364ee2853f5d33df67e4a340734dfe7c6c2398.zip opensim-SC_OLD-0c364ee2853f5d33df67e4a340734dfe7c6c2398.tar.gz opensim-SC_OLD-0c364ee2853f5d33df67e4a340734dfe7c6c2398.tar.bz2 opensim-SC_OLD-0c364ee2853f5d33df67e4a340734dfe7c6c2398.tar.xz |
Complete the first authenticator method
Diffstat (limited to 'OpenSim/Services')
-rw-r--r-- | OpenSim/Services/Connectors/Authentication/AuthenticationServiceConnector.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Services/Connectors/Authentication/AuthenticationServiceConnector.cs b/OpenSim/Services/Connectors/Authentication/AuthenticationServiceConnector.cs index 35f96a1..258b9b1 100644 --- a/OpenSim/Services/Connectors/Authentication/AuthenticationServiceConnector.cs +++ b/OpenSim/Services/Connectors/Authentication/AuthenticationServiceConnector.cs | |||
@@ -95,7 +95,13 @@ namespace OpenSim.Services.Connectors | |||
95 | m_ServerURI + "/auth/plain", | 95 | m_ServerURI + "/auth/plain", |
96 | ServerUtils.BuildQueryString(sendData)); | 96 | ServerUtils.BuildQueryString(sendData)); |
97 | 97 | ||
98 | return String.Empty; | 98 | Dictionary<string, object> replyData = ServerUtils.ParseXmlResponse( |
99 | reply); | ||
100 | |||
101 | if (replyData["Result"].ToString() != "Success") | ||
102 | return String.Empty; | ||
103 | |||
104 | return replyData["Token"].ToString(); | ||
99 | } | 105 | } |
100 | 106 | ||
101 | public bool Verify(UUID principalID, string token, int lifetime) | 107 | public bool Verify(UUID principalID, string token, int lifetime) |