summaryrefslogtreecommitdiffstats
path: root/projecttemplates/RelyingPartyLogic/Model.Consumer.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-07-12 22:00:46 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2010-07-12 22:00:46 -0700
commiteea1b39e043cbd64bccda02e9c9da81aeb359ada (patch)
tree39f6a1ba996bb6ebf081d5a41b25d5ebebc3f6cd /projecttemplates/RelyingPartyLogic/Model.Consumer.cs
parent096a53e5a79cac2eecb1311661a255a5f4e6aa6e (diff)
downloadDotNetOpenAuth-eea1b39e043cbd64bccda02e9c9da81aeb359ada.zip
DotNetOpenAuth-eea1b39e043cbd64bccda02e9c9da81aeb359ada.tar.gz
DotNetOpenAuth-eea1b39e043cbd64bccda02e9c9da81aeb359ada.tar.bz2
Work toward the WebFormsRelyingParty project template to use OAuth 2.0 instead of 1.0a.
It compiles now. (and the MVC one doesn't).
Diffstat (limited to 'projecttemplates/RelyingPartyLogic/Model.Consumer.cs')
-rw-r--r--projecttemplates/RelyingPartyLogic/Model.Consumer.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/projecttemplates/RelyingPartyLogic/Model.Consumer.cs b/projecttemplates/RelyingPartyLogic/Model.Consumer.cs
index a09029a..258a248 100644
--- a/projecttemplates/RelyingPartyLogic/Model.Consumer.cs
+++ b/projecttemplates/RelyingPartyLogic/Model.Consumer.cs
@@ -13,7 +13,7 @@ namespace RelyingPartyLogic {
using DotNetOpenAuth.OAuth;
using DotNetOpenAuth.OAuth.ChannelElements;
- public partial class Consumer : IConsumerDescription {
+ public partial class Consumer : IConsumerDescription, DotNetOpenAuth.OAuth2.IConsumerDescription {
public VerificationCodeFormat VerificationCodeFormat {
get { return (VerificationCodeFormat)this.VerificationCodeFormatAsInt; }
set { this.VerificationCodeFormatAsInt = (int)value; }
@@ -36,5 +36,16 @@ namespace RelyingPartyLogic {
string IConsumerDescription.Key {
get { return this.ConsumerKey; }
}
+
+ #region IConsumerDescription Members
+
+ /// <summary>
+ /// Gets the consumer secret.
+ /// </summary>
+ string DotNetOpenAuth.OAuth2.IConsumerDescription.Secret {
+ get { return this.ConsumerSecret; }
+ }
+
+ #endregion
}
}