diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-08-19 20:07:11 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-08-19 20:07:11 -0700 |
commit | ed0161d164ee049b341fb486e6f11ec7307b499c (patch) | |
tree | 1ef5bd94347b6fb89ab4db4614569aa2a7ec1e59 /samples/OAuthServiceProvider/App_Code/OAuthConsumer.cs | |
parent | 47d2b1ff0ceee960decae058cc1e32a47faed83f (diff) | |
download | DotNetOpenAuth-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/OAuthConsumer.cs')
-rw-r--r-- | samples/OAuthServiceProvider/App_Code/OAuthConsumer.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/OAuthServiceProvider/App_Code/OAuthConsumer.cs b/samples/OAuthServiceProvider/App_Code/OAuthConsumer.cs index 1255717..db8f469 100644 --- a/samples/OAuthServiceProvider/App_Code/OAuthConsumer.cs +++ b/samples/OAuthServiceProvider/App_Code/OAuthConsumer.cs @@ -26,7 +26,7 @@ public partial class OAuthConsumer : IConsumerDescription { } Uri IConsumerDescription.Callback { - get { return this.Callback != null ? new Uri(this.Callback) : null; } + get { return string.IsNullOrEmpty(this.Callback) ? null : new Uri(this.Callback); } } DotNetOpenAuth.OAuth.VerificationCodeFormat IConsumerDescription.VerificationCodeFormat { |