summaryrefslogtreecommitdiffstats
path: root/src/DotNetOAuth/Messages/SignedMessageBase.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2008-09-24 20:57:49 -0700
committerAndrew <andrewarnott@gmail.com>2008-09-24 20:57:49 -0700
commitde6a705de31c11ee5892c94cc9afc5c8e49a90ce (patch)
treeace1f83f585c1e84da5f768cb6ed4dbeecb42d57 /src/DotNetOAuth/Messages/SignedMessageBase.cs
parent22341a07b0ba0dc685bb859b0ed82c22fc3c09db (diff)
downloadDotNetOpenAuth-de6a705de31c11ee5892c94cc9afc5c8e49a90ce.zip
DotNetOpenAuth-de6a705de31c11ee5892c94cc9afc5c8e49a90ce.tar.gz
DotNetOpenAuth-de6a705de31c11ee5892c94cc9afc5c8e49a90ce.tar.bz2
Added a scenario test from Appendix A (incomplete but passing so far).
Included in this change are a lot of fixes and additional implementation.
Diffstat (limited to 'src/DotNetOAuth/Messages/SignedMessageBase.cs')
-rw-r--r--src/DotNetOAuth/Messages/SignedMessageBase.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/DotNetOAuth/Messages/SignedMessageBase.cs b/src/DotNetOAuth/Messages/SignedMessageBase.cs
index f490b26..460a509 100644
--- a/src/DotNetOAuth/Messages/SignedMessageBase.cs
+++ b/src/DotNetOAuth/Messages/SignedMessageBase.cs
@@ -23,7 +23,7 @@ namespace DotNetOAuth.Messages {
/// <summary>
/// The number of seconds since 1/1/1970, consistent with the OAuth timestamp requirement.
/// </summary>
- [MessagePart("oauth_timestamp")]
+ [MessagePart("oauth_timestamp", IsRequired = true)]
private long timestamp;
/// <summary>
@@ -48,20 +48,20 @@ namespace DotNetOAuth.Messages {
/// <summary>
/// Gets or sets the signature method used to sign the request.
/// </summary>
- [MessagePart("oauth_signature_method")]
+ [MessagePart("oauth_signature_method", IsRequired = true)]
string ITamperResistantOAuthMessage.SignatureMethod { get; set; }
/// <summary>
/// Gets or sets the Token Secret used to sign the message.
/// Only applicable to Consumer.
/// </summary>
- string ITamperResistantOAuthMessage.TokenSecret { get; set; }
+ public string TokenSecret { get; set; }
/// <summary>
/// Gets or sets the Consumer Secret used to sign the message.
/// Only applicable to Consumer.
/// </summary>
- string ITamperResistantOAuthMessage.ConsumerSecret { get; set; }
+ public string ConsumerSecret { get; set; }
/// <summary>
/// Gets or sets the HTTP method that will be used to transmit the message.
@@ -82,7 +82,7 @@ namespace DotNetOAuth.Messages {
/// <summary>
/// Gets or sets the message signature.
/// </summary>
- [MessagePart("oauth_signature")]
+ [MessagePart("oauth_signature", IsRequired = true)]
string ITamperResistantProtocolMessage.Signature { get; set; }
#endregion
@@ -104,7 +104,7 @@ namespace DotNetOAuth.Messages {
/// <summary>
/// Gets or sets the message nonce used for replay detection.
/// </summary>
- [MessagePart("oauth_nonce")]
+ [MessagePart("oauth_nonce", IsRequired = true)]
string IReplayProtectedProtocolMessage.Nonce { get; set; }
#endregion