diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-07-14 08:56:41 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-07-14 08:56:41 -0700 |
commit | 1882f59229ee85cf2b9cf66cfd2ada1cc27520f7 (patch) | |
tree | 2dafe590afca5ef8f48a0735c0562c2f80a18993 /projecttemplates/RelyingPartyLogic/Model.Consumer.cs | |
parent | c57069113ce391d0e2b40d2b7b14aa693511db70 (diff) | |
download | DotNetOpenAuth-1882f59229ee85cf2b9cf66cfd2ada1cc27520f7.zip DotNetOpenAuth-1882f59229ee85cf2b9cf66cfd2ada1cc27520f7.tar.gz DotNetOpenAuth-1882f59229ee85cf2b9cf66cfd2ada1cc27520f7.tar.bz2 |
Refactoring database to support OAuth 2.0
Diffstat (limited to 'projecttemplates/RelyingPartyLogic/Model.Consumer.cs')
-rw-r--r-- | projecttemplates/RelyingPartyLogic/Model.Consumer.cs | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/projecttemplates/RelyingPartyLogic/Model.Consumer.cs b/projecttemplates/RelyingPartyLogic/Model.Consumer.cs deleted file mode 100644 index 258a248..0000000 --- a/projecttemplates/RelyingPartyLogic/Model.Consumer.cs +++ /dev/null @@ -1,51 +0,0 @@ -//----------------------------------------------------------------------- -// <copyright file="Model.Consumer.cs" company="Andrew Arnott"> -// Copyright (c) Andrew Arnott. All rights reserved. -// </copyright> -//----------------------------------------------------------------------- - -namespace RelyingPartyLogic { - using System; - using System.Collections.Generic; - using System.Linq; - using System.Security.Cryptography.X509Certificates; - using System.Web; - using DotNetOpenAuth.OAuth; - using DotNetOpenAuth.OAuth.ChannelElements; - - public partial class Consumer : IConsumerDescription, DotNetOpenAuth.OAuth2.IConsumerDescription { - public VerificationCodeFormat VerificationCodeFormat { - get { return (VerificationCodeFormat)this.VerificationCodeFormatAsInt; } - set { this.VerificationCodeFormatAsInt = (int)value; } - } - - public X509Certificate2 Certificate { - get { return this.X509CertificateAsBinary != null ? new X509Certificate2(this.X509CertificateAsBinary) : null; } - set { this.X509CertificateAsBinary = value != null ? value.RawData : null; } - } - - public Uri Callback { - get { return this.CallbackAsString != null ? new Uri(this.CallbackAsString) : null; } - set { this.CallbackAsString = value != null ? value.AbsoluteUri : null; } - } - - string IConsumerDescription.Secret { - get { return this.ConsumerSecret; } - } - - 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 - } -} |