diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-05-31 08:51:47 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-05-31 08:51:47 -0700 |
commit | 5c67cca471290fcac511ddcd73c33d31a84e6e5c (patch) | |
tree | 8af346ae332fd875ad3d2413a359e355411a2673 /src | |
parent | 2926368c2fde104a74afd1fc8ea34c9a5b72d3b6 (diff) | |
download | DotNetOpenAuth-5c67cca471290fcac511ddcd73c33d31a84e6e5c.zip DotNetOpenAuth-5c67cca471290fcac511ddcd73c33d31a84e6e5c.tar.gz DotNetOpenAuth-5c67cca471290fcac511ddcd73c33d31a84e6e5c.tar.bz2 |
Fixed some bugs.
Diffstat (limited to 'src')
3 files changed, 3 insertions, 3 deletions
diff --git a/src/DotNetOpenAuth/Messaging/MessagingUtilities.cs b/src/DotNetOpenAuth/Messaging/MessagingUtilities.cs index 88e9ab0..aebe98c 100644 --- a/src/DotNetOpenAuth/Messaging/MessagingUtilities.cs +++ b/src/DotNetOpenAuth/Messaging/MessagingUtilities.cs @@ -430,7 +430,7 @@ namespace DotNetOpenAuth.Messaging { // Also we need to sort the dictionary's keys so that we sign in the same order as we did // the last time. var sortedData = new SortedDictionary<string, string>(data, StringComparer.OrdinalIgnoreCase); - return ComputeHash(algorithm, sortedData, encoding); + return ComputeHash(algorithm, (IEnumerable<KeyValuePair<string, string>>)sortedData, encoding); } /// <summary> diff --git a/src/DotNetOpenAuth/OAuthWrap/ChannelElements/TimestampEncoder.cs b/src/DotNetOpenAuth/OAuthWrap/ChannelElements/TimestampEncoder.cs index 32eac62..d4b113a 100644 --- a/src/DotNetOpenAuth/OAuthWrap/ChannelElements/TimestampEncoder.cs +++ b/src/DotNetOpenAuth/OAuthWrap/ChannelElements/TimestampEncoder.cs @@ -18,7 +18,7 @@ namespace DotNetOpenAuth.OAuthWrap.ChannelElements { /// <summary> /// Initializes a new instance of the <see cref="TimestampEncoder"/> class. /// </summary> - internal TimestampEncoder() { + public TimestampEncoder() { } /// <summary> diff --git a/src/DotNetOpenAuth/OAuthWrap/ChannelElements/VerificationCode.cs b/src/DotNetOpenAuth/OAuthWrap/ChannelElements/VerificationCode.cs index cc7f764..cd26dd0 100644 --- a/src/DotNetOpenAuth/OAuthWrap/ChannelElements/VerificationCode.cs +++ b/src/DotNetOpenAuth/OAuthWrap/ChannelElements/VerificationCode.cs @@ -60,7 +60,7 @@ namespace DotNetOpenAuth.OAuthWrap.ChannelElements { [MessagePart] internal string Nonce { get; set; } - [MessagePart("timestamp", Encoder = typeof(TimestampEncoder))] + [MessagePart("timestamp", IsRequired = true, Encoder = typeof(TimestampEncoder))] internal DateTime CreationDateUtc { get; set; } [MessagePart("sig")] |