summaryrefslogtreecommitdiffstats
path: root/samples/OAuthServiceProvider/Code/Client.cs
blob: 43e282d26660b271be29a4289a6c8335ee6ea194 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//-----------------------------------------------------------------------
// <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

		string IConsumerDescription.Secret {
			get { return this.ClientSecret; }
		}

		Uri IConsumerDescription.Callback {
			get { return string.IsNullOrEmpty(this.Callback) ? null : new Uri(this.Callback); }
		}

		#endregion
	}
}