diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-08-10 23:46:07 -0700 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-09-01 11:02:38 -0700 |
commit | 5010504266d6e7fddfedf49ecbc572a2baba5e0a (patch) | |
tree | 01a40701524aa4d14b3187ff984c192736827ef8 /src/DotNetOAuth/Protocol.cs | |
parent | 53c2d9b3b52608003a41f4195766f0c95bb0a25d (diff) | |
download | DotNetOpenAuth-5010504266d6e7fddfedf49ecbc572a2baba5e0a.zip DotNetOpenAuth-5010504266d6e7fddfedf49ecbc572a2baba5e0a.tar.gz DotNetOpenAuth-5010504266d6e7fddfedf49ecbc572a2baba5e0a.tar.bz2 |
Added some basic classes, message serialization and some unit tests.
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" },
+ };
+ }
+}
|