summaryrefslogtreecommitdiffstats
path: root/samples/OAuthServiceProvider/Code/Constants.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-07-22 10:15:49 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2010-07-22 10:15:49 -0700
commit4d2ec520fe9b42d0d0f1b764029a33dab906e68a (patch)
tree17918d5b1c4580017d0cb2c6e6ddd8153cdadcfa /samples/OAuthServiceProvider/Code/Constants.cs
parent431bf8c104dd498d1894083fc2ed4fa795bba7df (diff)
downloadDotNetOpenAuth-4d2ec520fe9b42d0d0f1b764029a33dab906e68a.zip
DotNetOpenAuth-4d2ec520fe9b42d0d0f1b764029a33dab906e68a.tar.gz
DotNetOpenAuth-4d2ec520fe9b42d0d0f1b764029a33dab906e68a.tar.bz2
Stripping OAuth 1.0 support from the OAuthServiceProvider sample.
Diffstat (limited to 'samples/OAuthServiceProvider/Code/Constants.cs')
-rw-r--r--samples/OAuthServiceProvider/Code/Constants.cs32
1 files changed, 0 insertions, 32 deletions
diff --git a/samples/OAuthServiceProvider/Code/Constants.cs b/samples/OAuthServiceProvider/Code/Constants.cs
deleted file mode 100644
index 3e629f0..0000000
--- a/samples/OAuthServiceProvider/Code/Constants.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-namespace OAuthServiceProvider.Code {
- using System;
- using DotNetOpenAuth.Messaging;
- using DotNetOpenAuth.OAuth;
- using DotNetOpenAuth.OAuth.ChannelElements;
-
- /// <summary>
- /// Service Provider definitions.
- /// </summary>
- public static class Constants {
- public static Uri WebRootUrl { get; set; }
-
- public static ServiceProviderDescription SelfDescription {
- get {
- ServiceProviderDescription description = new ServiceProviderDescription {
- AccessTokenEndpoint = new MessageReceivingEndpoint(new Uri(WebRootUrl, "/OAuth.ashx"), HttpDeliveryMethods.PostRequest),
- RequestTokenEndpoint = new MessageReceivingEndpoint(new Uri(WebRootUrl, "/OAuth.ashx"), HttpDeliveryMethods.PostRequest),
- UserAuthorizationEndpoint = new MessageReceivingEndpoint(new Uri(WebRootUrl, "/OAuth.ashx"), HttpDeliveryMethods.PostRequest),
- TamperProtectionElements = new ITamperProtectionChannelBindingElement[] {
- new HmacSha1SigningBindingElement(),
- },
- };
-
- return description;
- }
- }
-
- public static ServiceProvider CreateServiceProvider() {
- return new ServiceProvider(SelfDescription, Global.TokenManager, Global.NonceStore);
- }
- }
-} \ No newline at end of file