diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-09-18 15:40:17 -0700 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-09-18 15:40:17 -0700 |
commit | 95e418aa02296a93587c4e07b0f3eec8cd379416 (patch) | |
tree | 38c97ac46e3b8e1b141ae6d57e1bfe6a42e2db05 /src/DotNetOAuth/Messaging/Channel.cs | |
parent | ea7cae52f40770d1023362dadd234b8038d9e68b (diff) | |
download | DotNetOpenAuth-95e418aa02296a93587c4e07b0f3eec8cd379416.zip DotNetOpenAuth-95e418aa02296a93587c4e07b0f3eec8cd379416.tar.gz DotNetOpenAuth-95e418aa02296a93587c4e07b0f3eec8cd379416.tar.bz2 |
MessageDictionary mostly hooked up and most tests passing.
Diffstat (limited to 'src/DotNetOAuth/Messaging/Channel.cs')
-rw-r--r-- | src/DotNetOAuth/Messaging/Channel.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/DotNetOAuth/Messaging/Channel.cs b/src/DotNetOAuth/Messaging/Channel.cs index aebf6e4..e3b7a73 100644 --- a/src/DotNetOAuth/Messaging/Channel.cs +++ b/src/DotNetOAuth/Messaging/Channel.cs @@ -179,7 +179,10 @@ namespace DotNetOAuth.Messaging { /// <returns>The deserialized message, if one is found. Null otherwise.</returns>
protected internal IProtocolMessage ReadFromRequest(HttpRequestInfo httpRequest) {
IProtocolMessage requestMessage = this.ReadFromRequestInternal(httpRequest);
- this.VerifyMessageAfterReceiving(requestMessage);
+ if (requestMessage != null) {
+ this.VerifyMessageAfterReceiving(requestMessage);
+ }
+
return requestMessage;
}
@@ -521,6 +524,11 @@ namespace DotNetOAuth.Messaging { if ((message.RequiredProtection & appliedProtection) != message.RequiredProtection) {
throw new UnprotectedMessageException(message, appliedProtection);
}
+
+ // TODO: call MessagePart.IsValidValue()
+
+
+ message.EnsureValidMessage();
}
}
}
|