summaryrefslogtreecommitdiffstats
path: root/projecttemplates
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-02-12 18:37:40 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2012-02-12 18:37:40 -0800
commitfb504a4573992f0ef7742f5c34e4e85a945b710c (patch)
treefb769c13b917a3d0bd32db0c22e79bb8d5d459c6 /projecttemplates
parent7bf63044b1a48dc6f1df95c63431e8130940595d (diff)
downloadDotNetOpenAuth-fb504a4573992f0ef7742f5c34e4e85a945b710c.zip
DotNetOpenAuth-fb504a4573992f0ef7742f5c34e4e85a945b710c.tar.gz
DotNetOpenAuth-fb504a4573992f0ef7742f5c34e4e85a945b710c.tar.bz2
Renamed IConsumerDescription to IClientDescription.
Diffstat (limited to 'projecttemplates')
-rw-r--r--projecttemplates/RelyingPartyLogic/Model.Client.cs8
-rw-r--r--projecttemplates/RelyingPartyLogic/OAuthAuthorizationServer.cs2
2 files changed, 5 insertions, 5 deletions
diff --git a/projecttemplates/RelyingPartyLogic/Model.Client.cs b/projecttemplates/RelyingPartyLogic/Model.Client.cs
index 0052b0c..42f6274 100644
--- a/projecttemplates/RelyingPartyLogic/Model.Client.cs
+++ b/projecttemplates/RelyingPartyLogic/Model.Client.cs
@@ -10,13 +10,13 @@ namespace RelyingPartyLogic {
using DotNetOpenAuth.OAuth2;
- public partial class Client : IConsumerDescription {
+ public partial class Client : IClientDescription {
#region IConsumerDescription Members
/// <summary>
/// Gets the client secret.
/// </summary>
- string IConsumerDescription.Secret {
+ string IClientDescription.Secret {
get { return this.ClientSecret; }
}
@@ -27,7 +27,7 @@ namespace RelyingPartyLogic {
/// <value>
/// An absolute URL; or <c>null</c> if none is registered.
/// </value>
- Uri IConsumerDescription.DefaultCallback {
+ Uri IClientDescription.DefaultCallback {
get { return string.IsNullOrEmpty(this.CallbackAsString) ? null : new Uri(this.CallbackAsString); }
}
@@ -39,7 +39,7 @@ namespace RelyingPartyLogic {
/// <returns>
/// <c>true</c> if the callback URL is allowable for this client; otherwise, <c>false</c>.
/// </returns>
- bool IConsumerDescription.IsCallbackAllowed(Uri callback) {
+ bool IClientDescription.IsCallbackAllowed(Uri callback) {
return string.IsNullOrEmpty(this.CallbackAsString) || callback == new Uri(this.CallbackAsString);
}
diff --git a/projecttemplates/RelyingPartyLogic/OAuthAuthorizationServer.cs b/projecttemplates/RelyingPartyLogic/OAuthAuthorizationServer.cs
index b9a75e5..3f0c48d 100644
--- a/projecttemplates/RelyingPartyLogic/OAuthAuthorizationServer.cs
+++ b/projecttemplates/RelyingPartyLogic/OAuthAuthorizationServer.cs
@@ -95,7 +95,7 @@ namespace RelyingPartyLogic {
/// <param name="clientIdentifier">The client identifier.</param>
/// <returns>The client registration. Never null.</returns>
/// <exception cref="ArgumentException">Thrown when no client with the given identifier is registered with this authorization server.</exception>
- public IConsumerDescription GetClient(string clientIdentifier) {
+ public IClientDescription GetClient(string clientIdentifier) {
try {
return Database.DataContext.Clients.First(c => c.ClientIdentifier == clientIdentifier);
} catch (InvalidOperationException ex) {