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/ClientBase.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/ClientBase.cs')
-rw-r--r-- | src/DotNetOpenAuth.OAuth2.Client/OAuth2/ClientBase.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.OAuth2.Client/OAuth2/ClientBase.cs b/src/DotNetOpenAuth.OAuth2.Client/OAuth2/ClientBase.cs index d4ea171..e17a6a1 100644 --- a/src/DotNetOpenAuth.OAuth2.Client/OAuth2/ClientBase.cs +++ b/src/DotNetOpenAuth.OAuth2.Client/OAuth2/ClientBase.cs @@ -16,6 +16,8 @@ namespace DotNetOpenAuth.OAuth2 { #endif using System.Security; using System.Text; + using System.Xml; + using DotNetOpenAuth.Messaging; using DotNetOpenAuth.OAuth2.ChannelElements; using DotNetOpenAuth.OAuth2.Messages; @@ -71,6 +73,13 @@ namespace DotNetOpenAuth.OAuth2 { } /// <summary> + /// Gets quotas used when deserializing JSON. + /// </summary> + public XmlDictionaryReaderQuotas JsonReaderQuotas { + get { return this.OAuthChannel.JsonReaderQuotas; } + } + + /// <summary> /// Gets the OAuth client channel. /// </summary> internal IOAuth2ChannelWithClient OAuthChannel { |