summaryrefslogtreecommitdiffstats
path: root/samples/OAuthServiceProvider/App_Code/OAuthConsumer.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-06-08 22:26:59 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-06-08 22:26:59 -0700
commite6f0ca7a075d345b8da6871c42c0947f55e0867f (patch)
treef636214daadc9626c9b9d23443e0e6f487953d0c /samples/OAuthServiceProvider/App_Code/OAuthConsumer.cs
parent67d4881942b6a145d299a8a32eee8f50ae09cc70 (diff)
downloadDotNetOpenAuth-e6f0ca7a075d345b8da6871c42c0947f55e0867f.zip
DotNetOpenAuth-e6f0ca7a075d345b8da6871c42c0947f55e0867f.tar.gz
DotNetOpenAuth-e6f0ca7a075d345b8da6871c42c0947f55e0867f.tar.bz2
Refactored OAuth service provider interfaces to better suite token and consumer queries.
Diffstat (limited to 'samples/OAuthServiceProvider/App_Code/OAuthConsumer.cs')
-rw-r--r--samples/OAuthServiceProvider/App_Code/OAuthConsumer.cs41
1 files changed, 41 insertions, 0 deletions
diff --git a/samples/OAuthServiceProvider/App_Code/OAuthConsumer.cs b/samples/OAuthServiceProvider/App_Code/OAuthConsumer.cs
new file mode 100644
index 0000000..2de1e85
--- /dev/null
+++ b/samples/OAuthServiceProvider/App_Code/OAuthConsumer.cs
@@ -0,0 +1,41 @@
+//-----------------------------------------------------------------------
+// <copyright file="OAuthConsumer.cs" company="Andrew Arnott">
+// Copyright (c) Andrew Arnott. All rights reserved.
+// </copyright>
+//-----------------------------------------------------------------------
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using DotNetOpenAuth.OAuth.ChannelElements;
+
+public partial class OAuthConsumer : IConsumerDescription {
+ #region IConsumerDescription Members
+
+ string IConsumerDescription.Key {
+ get { return this.ConsumerKey; }
+ }
+
+ string IConsumerDescription.Secret {
+ get { return this.ConsumerSecret; }
+ }
+
+ System.Security.Cryptography.X509Certificates.X509Certificate2 IConsumerDescription.Certificate {
+ get { return null; }
+ }
+
+ Uri IConsumerDescription.Callback {
+ get { return new Uri(this.Callback); }
+ }
+
+ DotNetOpenAuth.OAuth.VerificationCodeFormat IConsumerDescription.VerificationCodeFormat {
+ get { return this.VerificationCodeFormat; }
+ }
+
+ int IConsumerDescription.VerificationCodeLength {
+ get { return this.VerificationCodeLength; }
+ }
+
+ #endregion
+}