diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-12-24 07:18:24 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-12-24 07:18:24 -0800 |
commit | 8505f8ddcb35958e3b81ee90f54b0efbde13f693 (patch) | |
tree | 1451e89521445593087a55bd9729de8f743cf032 /src/DotNetOpenAuth.OAuth2.Client/OAuth2/ChannelElements/OAuth2ClientChannel.cs | |
parent | c7509b6d29ffe07098d0c2b81acbd1af34e1c076 (diff) | |
download | DotNetOpenAuth-8505f8ddcb35958e3b81ee90f54b0efbde13f693.zip DotNetOpenAuth-8505f8ddcb35958e3b81ee90f54b0efbde13f693.tar.gz DotNetOpenAuth-8505f8ddcb35958e3b81ee90f54b0efbde13f693.tar.bz2 |
Adds ability for OAuth 2 clients to accept deeper access token JSON responses.
Fixes #168
Diffstat (limited to 'src/DotNetOpenAuth.OAuth2.Client/OAuth2/ChannelElements/OAuth2ClientChannel.cs')
-rw-r--r-- | src/DotNetOpenAuth.OAuth2.Client/OAuth2/ChannelElements/OAuth2ClientChannel.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.OAuth2.Client/OAuth2/ChannelElements/OAuth2ClientChannel.cs b/src/DotNetOpenAuth.OAuth2.Client/OAuth2/ChannelElements/OAuth2ClientChannel.cs index 8ad2ed9..b0cdb4b 100644 --- a/src/DotNetOpenAuth.OAuth2.Client/OAuth2/ChannelElements/OAuth2ClientChannel.cs +++ b/src/DotNetOpenAuth.OAuth2.Client/OAuth2/ChannelElements/OAuth2ClientChannel.cs @@ -11,6 +11,7 @@ namespace DotNetOpenAuth.OAuth2.ChannelElements { using System.Diagnostics.Contracts; using System.Net; using System.Web; + using System.Xml; using DotNetOpenAuth.Messaging; using DotNetOpenAuth.OAuth2.Messages; @@ -50,6 +51,13 @@ namespace DotNetOpenAuth.OAuth2.ChannelElements { public ClientCredentialApplicator ClientCredentialApplicator { get; set; } /// <summary> + /// Gets quotas used when deserializing JSON. + /// </summary> + public XmlDictionaryReaderQuotas JsonReaderQuotas { + get { return this.XmlDictionaryReaderQuotas; } + } + + /// <summary> /// Prepares an HTTP request that carries a given message. /// </summary> /// <param name="request">The message to send.</param> |