summaryrefslogtreecommitdiffstats
path: root/samples/OAuthServiceProvider/Code/OAuthConsumer.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-06-25 16:50:42 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2010-06-25 16:50:42 -0700
commit9b4b44455d65be769815d7ccc08ae1601c996b7c (patch)
treeaec9fff1b69121fd4aa63292291c455725383848 /samples/OAuthServiceProvider/Code/OAuthConsumer.cs
parent0af634db187612b552b7fb257580e7503227b10d (diff)
downloadDotNetOpenAuth-9b4b44455d65be769815d7ccc08ae1601c996b7c.zip
DotNetOpenAuth-9b4b44455d65be769815d7ccc08ae1601c996b7c.tar.gz
DotNetOpenAuth-9b4b44455d65be769815d7ccc08ae1601c996b7c.tar.bz2
Removed last tie between OAuth 2.0 and OAuth 1.0 in the code.
Diffstat (limited to 'samples/OAuthServiceProvider/Code/OAuthConsumer.cs')
-rw-r--r--samples/OAuthServiceProvider/Code/OAuthConsumer.cs14
1 files changed, 13 insertions, 1 deletions
diff --git a/samples/OAuthServiceProvider/Code/OAuthConsumer.cs b/samples/OAuthServiceProvider/Code/OAuthConsumer.cs
index d7dfc06..8291929 100644
--- a/samples/OAuthServiceProvider/Code/OAuthConsumer.cs
+++ b/samples/OAuthServiceProvider/Code/OAuthConsumer.cs
@@ -11,7 +11,7 @@ namespace OAuthServiceProvider.Code {
using System.Web;
using DotNetOpenAuth.OAuth.ChannelElements;
- public partial class OAuthConsumer : IConsumerDescription {
+ public partial class OAuthConsumer : IConsumerDescription, DotNetOpenAuth.OAuth2.IConsumerDescription {
#region IConsumerDescription Members
string IConsumerDescription.Key {
@@ -39,5 +39,17 @@ namespace OAuthServiceProvider.Code {
}
#endregion
+
+ #region IConsumerDescription Members
+
+ string DotNetOpenAuth.OAuth2.IConsumerDescription.Secret {
+ get { return this.ConsumerSecret; }
+ }
+
+ Uri DotNetOpenAuth.OAuth2.IConsumerDescription.Callback {
+ get { return string.IsNullOrEmpty(this.Callback) ? null : new Uri(this.Callback); }
+ }
+
+ #endregion
}
} \ No newline at end of file