summaryrefslogtreecommitdiffstats
path: root/samples/OAuthServiceProvider/App_Code/OAuthToken.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-08-19 20:07:11 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-08-19 20:07:11 -0700
commited0161d164ee049b341fb486e6f11ec7307b499c (patch)
tree1ef5bd94347b6fb89ab4db4614569aa2a7ec1e59 /samples/OAuthServiceProvider/App_Code/OAuthToken.cs
parent47d2b1ff0ceee960decae058cc1e32a47faed83f (diff)
downloadDotNetOpenAuth-ed0161d164ee049b341fb486e6f11ec7307b499c.zip
DotNetOpenAuth-ed0161d164ee049b341fb486e6f11ec7307b499c.tar.gz
DotNetOpenAuth-ed0161d164ee049b341fb486e6f11ec7307b499c.tar.bz2
Fixed a couple of issues with the sample OAuth SP in handling desktop consumers.
Diffstat (limited to 'samples/OAuthServiceProvider/App_Code/OAuthToken.cs')
-rw-r--r--samples/OAuthServiceProvider/App_Code/OAuthToken.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/OAuthServiceProvider/App_Code/OAuthToken.cs b/samples/OAuthServiceProvider/App_Code/OAuthToken.cs
index ec9b31e..2f26799 100644
--- a/samples/OAuthServiceProvider/App_Code/OAuthToken.cs
+++ b/samples/OAuthServiceProvider/App_Code/OAuthToken.cs
@@ -26,7 +26,7 @@ public partial class OAuthToken : IServiceProviderRequestToken {
}
Uri IServiceProviderRequestToken.Callback {
- get { return new Uri(this.RequestTokenCallback); }
+ get { return string.IsNullOrEmpty(this.RequestTokenCallback) ? null : new Uri(this.RequestTokenCallback); }
set { this.RequestTokenCallback = value.AbsoluteUri; }
}