diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-11-02 21:46:06 -0800 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-11-02 21:46:06 -0800 |
commit | 71e99449ee02155f34bb4928313c2200246b8a78 (patch) | |
tree | 8368303d42afe232a460c6cf7afc062d1270fc17 /samples/Consumer/App_Code | |
parent | 916966f88a3ed3246374efb625804b11bdda6fa5 (diff) | |
download | DotNetOpenAuth-71e99449ee02155f34bb4928313c2200246b8a78.zip DotNetOpenAuth-71e99449ee02155f34bb4928313c2200246b8a78.tar.gz DotNetOpenAuth-71e99449ee02155f34bb4928313c2200246b8a78.tar.bz2 |
First stab at building specific application Consumer classes for ease of adoption.
Diffstat (limited to 'samples/Consumer/App_Code')
-rw-r--r-- | samples/Consumer/App_Code/Constants.cs | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/samples/Consumer/App_Code/Constants.cs b/samples/Consumer/App_Code/Constants.cs deleted file mode 100644 index ba61b43..0000000 --- a/samples/Consumer/App_Code/Constants.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Web;
-using DotNetOAuth;
-using DotNetOAuth.ChannelElements;
-using DotNetOAuth.Messaging;
-
-/// <summary>
-/// Service Provider definitions.
-/// </summary>
-public static class Constants {
- /// <summary>
- /// The Consumer to use for accessing Google data APIs.
- /// </summary>
- public static readonly ServiceProviderDescription GoogleDescription = new ServiceProviderDescription {
- RequestTokenEndpoint = new MessageReceivingEndpoint("https://www.google.com/accounts/OAuthGetRequestToken", HttpDeliveryMethods.AuthorizationHeaderRequest | HttpDeliveryMethods.GetRequest),
- UserAuthorizationEndpoint = new MessageReceivingEndpoint("https://www.google.com/accounts/OAuthAuthorizeToken", HttpDeliveryMethods.AuthorizationHeaderRequest | HttpDeliveryMethods.GetRequest),
- AccessTokenEndpoint = new MessageReceivingEndpoint("https://www.google.com/accounts/OAuthGetAccessToken", HttpDeliveryMethods.AuthorizationHeaderRequest | HttpDeliveryMethods.GetRequest),
- TamperProtectionElements = new ITamperProtectionChannelBindingElement[] {
- new HmacSha1SigningBindingElement(),
- },
- };
-
- /// <summary>
- /// Values of the "scope" parameter that indicates what data streams the Consumer
- /// wants access to.
- /// </summary>
- public static class GoogleScopes {
- /// <summary>
- /// Access to the Gmail address book.
- /// </summary>
- public const string Contacts = "http://www.google.com/m8/feeds/";
-
- /// <summary>
- /// The URI to get contacts once authorization is granted.
- /// </summary>
- public static readonly MessageReceivingEndpoint GetContacts = new MessageReceivingEndpoint("http://www.google.com/m8/feeds/contacts/default/full/", HttpDeliveryMethods.GetRequest);
- }
-}
|