summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-07-24 12:51:34 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-07-24 12:51:34 -0700
commit70953d03454c758114c9bfc3bc8b44ab79cf9fd8 (patch)
tree045d6c47a71146bd868d514a709a994da5cd2406 /src
parent8b6684df4bd03851bd45a343d0018a08fa7188de (diff)
downloadDotNetOpenAuth-70953d03454c758114c9bfc3bc8b44ab79cf9fd8.zip
DotNetOpenAuth-70953d03454c758114c9bfc3bc8b44ab79cf9fd8.tar.gz
DotNetOpenAuth-70953d03454c758114c9bfc3bc8b44ab79cf9fd8.tar.bz2
Avoid passing null or empty token values to the host IServiceProviderTokenManager object.
Fixes Trac issue #100.
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth/OAuth/ChannelElements/TokenHandlingBindingElement.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth/OAuth/ChannelElements/TokenHandlingBindingElement.cs b/src/DotNetOpenAuth/OAuth/ChannelElements/TokenHandlingBindingElement.cs
index 0f755a6..3e75e7b 100644
--- a/src/DotNetOpenAuth/OAuth/ChannelElements/TokenHandlingBindingElement.cs
+++ b/src/DotNetOpenAuth/OAuth/ChannelElements/TokenHandlingBindingElement.cs
@@ -166,7 +166,7 @@ namespace DotNetOpenAuth.OAuth.ChannelElements {
/// <exception cref="ProtocolException">Thrown when the token in the message has expired.</exception>
private void VerifyThrowTokenTimeToLive(ITokenContainingMessage message) {
ErrorUtilities.VerifyInternal(!(message is AccessProtectedResourceRequest), "We shouldn't be verifying TTL on access tokens.");
- if (message == null) {
+ if (message == null || string.IsNullOrEmpty(message.Token)) {
return;
}