diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-02-10 14:34:14 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-02-10 14:34:14 -0800 |
commit | 4e85bc002819c123a6e2dd88f18fcc82fa78c38f (patch) | |
tree | 7f58a9f6be09e8e19b64b46a40f8d99c57c810c4 /src/DotNetOpenAuth.OAuth.Consumer/OAuth/ConsumerBase.cs | |
parent | bfb7f04a6c71b54b27763eccf69c3d26c0764272 (diff) | |
download | DotNetOpenAuth-4e85bc002819c123a6e2dd88f18fcc82fa78c38f.zip DotNetOpenAuth-4e85bc002819c123a6e2dd88f18fcc82fa78c38f.tar.gz DotNetOpenAuth-4e85bc002819c123a6e2dd88f18fcc82fa78c38f.tar.bz2 |
Adds a delegating HTTP handler that applies OAuth 1 signatures.
Diffstat (limited to 'src/DotNetOpenAuth.OAuth.Consumer/OAuth/ConsumerBase.cs')
-rw-r--r-- | src/DotNetOpenAuth.OAuth.Consumer/OAuth/ConsumerBase.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.OAuth.Consumer/OAuth/ConsumerBase.cs b/src/DotNetOpenAuth.OAuth.Consumer/OAuth/ConsumerBase.cs index 80a1381..b59b438 100644 --- a/src/DotNetOpenAuth.OAuth.Consumer/OAuth/ConsumerBase.cs +++ b/src/DotNetOpenAuth.OAuth.Consumer/OAuth/ConsumerBase.cs @@ -79,6 +79,14 @@ namespace DotNetOpenAuth.OAuth { internal OAuthChannel OAuthChannel { get; set; } /// <summary> + /// Creates a message handler that signs outbound requests with a previously obtained authorization. + /// </summary> + /// <returns>A message handler.</returns> + public OAuth1HttpMessageHandler CreateMessageHandler() { + return new OAuth1HttpMessageHandler(this); + } + + /// <summary> /// Obtains an access token for a new account at the Service Provider via 2-legged OAuth. /// </summary> /// <param name="requestParameters">Any applicable parameters to include in the query string of the token request.</param> |