diff options
Diffstat (limited to 'samples/OAuthServiceProvider/Code/Client.cs')
-rw-r--r-- | samples/OAuthServiceProvider/Code/Client.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/samples/OAuthServiceProvider/Code/Client.cs b/samples/OAuthServiceProvider/Code/Client.cs new file mode 100644 index 0000000..43e282d --- /dev/null +++ b/samples/OAuthServiceProvider/Code/Client.cs @@ -0,0 +1,27 @@ +//----------------------------------------------------------------------- +// <copyright file="Client.cs" company="Andrew Arnott"> +// Copyright (c) Andrew Arnott. All rights reserved. +// </copyright> +//----------------------------------------------------------------------- + +namespace OAuthServiceProvider.Code { + using System; + using System.Collections.Generic; + using System.Linq; + using System.Web; + using DotNetOpenAuth.OAuth2; + + public partial class Client : IConsumerDescription { + #region IConsumerDescription Members + + string IConsumerDescription.Secret { + get { return this.ClientSecret; } + } + + Uri IConsumerDescription.Callback { + get { return string.IsNullOrEmpty(this.Callback) ? null : new Uri(this.Callback); } + } + + #endregion + } +}
\ No newline at end of file |