summaryrefslogtreecommitdiffstats
path: root/samples/OAuthServiceProvider/Code/Client.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-07-31 22:01:16 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2010-07-31 22:01:16 -0700
commitc94c7f8197eda673947a9d1e0c0b3f3c4efca94f (patch)
tree0f978cfc2de70c54ac81e11d4339da04dff9f27f /samples/OAuthServiceProvider/Code/Client.cs
parent7d38eefb65928a1e80036ec006b0e129dc2cface (diff)
downloadDotNetOpenAuth-c94c7f8197eda673947a9d1e0c0b3f3c4efca94f.zip
DotNetOpenAuth-c94c7f8197eda673947a9d1e0c0b3f3c4efca94f.tar.gz
DotNetOpenAuth-c94c7f8197eda673947a9d1e0c0b3f3c4efca94f.tar.bz2
Split the OAuthServiceProvider sample into two samples: OAuthAuthorizationServer and OAuthResourceServer.
Renamed OAuthConsumer to OAuthClient.
Diffstat (limited to 'samples/OAuthServiceProvider/Code/Client.cs')
-rw-r--r--samples/OAuthServiceProvider/Code/Client.cs40
1 files changed, 0 insertions, 40 deletions
diff --git a/samples/OAuthServiceProvider/Code/Client.cs b/samples/OAuthServiceProvider/Code/Client.cs
deleted file mode 100644
index bb4007e..0000000
--- a/samples/OAuthServiceProvider/Code/Client.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-//-----------------------------------------------------------------------
-// <copyright file="Client.cs" company="Andrew Arnott">
-// Copyright (c) Andrew Arnott. All rights reserved.
-// </copyright>
-//-----------------------------------------------------------------------
-
-namespace OAuthServiceProvider.Code {
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using DotNetOpenAuth.OAuth2;
-
- public partial class Client : IConsumerDescription {
- #region IConsumerDescription Members
-
- /// <summary>
- /// Gets the client secret.
- /// </summary>
- string IConsumerDescription.Secret {
- get { return this.ClientSecret; }
- }
-
- /// <summary>
- /// Gets the allowed callback URIs that this client has pre-registered with the service provider, if any.
- /// </summary>
- /// <value>
- /// The URIs that user authorization responses may be directed to; must not be <c>null</c>, but may be empty.
- /// </value>
- /// <remarks>
- /// The first element in this list (if any) will be used as the default client redirect URL if the client sends an authorization request without a redirect URL.
- /// If the list is empty, any callback is allowed for this client.
- /// </remarks>
- List<Uri> IConsumerDescription.AllowedCallbacks {
- get { return string.IsNullOrEmpty(this.Callback) ? new List<Uri>() : new List<Uri>(new Uri[] { new Uri(this.Callback) }); }
- }
-
- #endregion
- }
-} \ No newline at end of file