summaryrefslogtreecommitdiffstats
path: root/samples/ServiceProvider/App_Code/Constants.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-03-26 14:17:05 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-03-26 14:17:05 -0700
commit1bfeae7973d31f3e69a83793d95904abf4f653bc (patch)
tree50938143aae7a17001c68c99ffc3bcdb5bac6f1f /samples/ServiceProvider/App_Code/Constants.cs
parent00f1f6baf79d6f42bcaaf24b1e43f3c86f540b2a (diff)
downloadDotNetOpenAuth-1bfeae7973d31f3e69a83793d95904abf4f653bc.zip
DotNetOpenAuth-1bfeae7973d31f3e69a83793d95904abf4f653bc.tar.gz
DotNetOpenAuth-1bfeae7973d31f3e69a83793d95904abf4f653bc.tar.bz2
Renamed OAuth sample sites.
Diffstat (limited to 'samples/ServiceProvider/App_Code/Constants.cs')
-rw-r--r--samples/ServiceProvider/App_Code/Constants.cs30
1 files changed, 0 insertions, 30 deletions
diff --git a/samples/ServiceProvider/App_Code/Constants.cs b/samples/ServiceProvider/App_Code/Constants.cs
deleted file mode 100644
index 7780e96..0000000
--- a/samples/ServiceProvider/App_Code/Constants.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-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);
- }
-}