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.Client.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.Client.cs')
-rw-r--r-- | projecttemplates/RelyingPartyLogic/Model.Client.cs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/projecttemplates/RelyingPartyLogic/Model.Client.cs b/projecttemplates/RelyingPartyLogic/Model.Client.cs new file mode 100644 index 0000000..9426408 --- /dev/null +++ b/projecttemplates/RelyingPartyLogic/Model.Client.cs @@ -0,0 +1,29 @@ +//----------------------------------------------------------------------- +// <copyright file="Model.Client.cs" company="Andrew Arnott"> +// Copyright (c) Andrew Arnott. All rights reserved. +// </copyright> +//----------------------------------------------------------------------- + +namespace RelyingPartyLogic { + using System; + + using DotNetOpenAuth.OAuth2; + + public partial class Client : IConsumerDescription { + public Uri Callback { + get { return this.CallbackAsString != null ? new Uri(this.CallbackAsString) : null; } + set { this.CallbackAsString = value != null ? value.AbsoluteUri : null; } + } + + #region IConsumerDescription Members + + /// <summary> + /// Gets the client secret. + /// </summary> + string IConsumerDescription.Secret { + get { return this.ClientSecret; } + } + + #endregion + } +} |