diff options
Diffstat (limited to 'src/DotNetOAuth/Protocol.cs')
-rw-r--r-- | src/DotNetOAuth/Protocol.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/DotNetOAuth/Protocol.cs b/src/DotNetOAuth/Protocol.cs new file mode 100644 index 0000000..0969a26 --- /dev/null +++ b/src/DotNetOAuth/Protocol.cs @@ -0,0 +1,32 @@ +using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace DotNetOAuth {
+ /// <summary>
+ /// Constants used in the OAuth protocol.
+ /// </summary>
+ /// <remarks>
+ /// OAuth Protocol Parameter names and values are case sensitive. Each OAuth Protocol Parameters MUST NOT appear more than once per request, and are REQUIRED unless otherwise noted,
+ /// per OAuth 1.0 section 5.
+ /// </remarks>
+ class Protocol {
+ internal static readonly Protocol Default = V10;
+ internal static readonly Protocol V10 = new Protocol {
+ };
+
+ internal const string DataContractNamespace = "http://oauth.net/core/1.0/";
+ internal string ParameterPrefix = "oauth_";
+
+ /// <summary>
+ /// Strings that identify the various message schemes.
+ /// </summary>
+ /// <remarks>
+ /// These strings should be checked with case INsensitivity.
+ /// </remarks>
+ internal Dictionary<MessageScheme, string> MessageSchemes = new Dictionary<MessageScheme,string> {
+ { MessageScheme.AuthorizationHeaderRequest, "OAuth" },
+ };
+ }
+}
|