aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs
diff options
context:
space:
mode:
authorDr Scofield2008-10-20 18:07:06 +0000
committerDr Scofield2008-10-20 18:07:06 +0000
commit12042cdc2b53e581ace6a017d9b17bd763a544b2 (patch)
tree0d99aa0e5dc5349d420c820c2c78c59f3228957f /OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs
parentactually enabling SaveOAR XmlRpc ;-) (diff)
downloadopensim-SC-12042cdc2b53e581ace6a017d9b17bd763a544b2.zip
opensim-SC-12042cdc2b53e581ace6a017d9b17bd763a544b2.tar.gz
opensim-SC-12042cdc2b53e581ace6a017d9b17bd763a544b2.tar.bz2
opensim-SC-12042cdc2b53e581ace6a017d9b17bd763a544b2.tar.xz
From: Alan Webb <alan_webb@us.ibm.com>
cleanups and assorted fixes to REST inventory, asset, and appearance services.
Diffstat (limited to '')
-rw-r--r--OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs35
1 files changed, 18 insertions, 17 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs
index d7935bc..badbb08 100644
--- a/OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs
+++ b/OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs
@@ -46,6 +46,21 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
46 internal static bool DEBUG = Log.IsDebugEnabled; 46 internal static bool DEBUG = Log.IsDebugEnabled;
47 47
48 /// <summary> 48 /// <summary>
49 /// Supported authentication schemes
50 /// </summary>
51
52 public const string AS_BASIC = "Basic"; // simple user/password verification
53 public const string AS_DIGEST = "Digest"; // password safe authentication
54
55 /// Supported Digest algorithms
56
57 public const string Digest_MD5 = "MD5"; // assumed default if omitted
58 public const string Digest_MD5Sess = "MD5-sess"; // session-span - not good for REST?
59
60 public const string Qop_Auth = "auth"; // authentication only
61 public const string Qop_Int = "auth-int"; // TODO
62
63 /// <summary>
49 /// These values have a single value for the whole 64 /// These values have a single value for the whole
50 /// domain and lifetime of the plugin handler. We 65 /// domain and lifetime of the plugin handler. We
51 /// make them static for ease of reference within 66 /// make them static for ease of reference within
@@ -67,9 +82,10 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
67 internal static bool Secure = true; 82 internal static bool Secure = true;
68 internal static bool ExtendedEscape = true; 83 internal static bool ExtendedEscape = true;
69 internal static bool DumpAsset = false; 84 internal static bool DumpAsset = false;
70 internal static bool Fill = true; 85 internal static bool Fill = false;
71 internal static bool FlushEnabled = true; 86 internal static bool FlushEnabled = true;
72 internal static string Realm = "REST"; 87 internal static string Realm = "OpenSim REST";
88 internal static string Scheme = AS_BASIC;
73 internal static int DumpLineSize = 32; // Should be a multiple of 16 or (possibly) 4 89 internal static int DumpLineSize = 32; // Should be a multiple of 16 or (possibly) 4
74 90
75 /// <summary> 91 /// <summary>
@@ -383,21 +399,6 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
383 public const string HttpHeaderWarning = "Warning"; 399 public const string HttpHeaderWarning = "Warning";
384 public const string HttpHeaderWWWAuthenticate = "WWW-Authenticate"; 400 public const string HttpHeaderWWWAuthenticate = "WWW-Authenticate";
385 401
386 /// <summary>
387 /// Supported authentication schemes
388 /// </summary>
389
390 public const string AS_BASIC = "Basic";
391 public const string AS_DIGEST = "Digest";
392
393 /// Supported Digest algorithms
394
395 public const string Digest_MD5 = "MD5"; // assumed default if omitted
396 public const string Digest_MD5Sess = "MD5-sess";
397
398 public const string Qop_Auth = "auth";
399 public const string Qop_Int = "auth-int";
400
401 /// Utility routines 402 /// Utility routines
402 403
403 public static string StringToBase64(string str) 404 public static string StringToBase64(string str)