Skip to content

Commit 22152fd

Browse files
committed
* add default parameters from the client
1 parent f36b40a commit 22152fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

RestSharp/Authenticators/OAuth1Authenticator.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ private void AddOAuthData(IRestClient client, IRestRequest request, OAuthWorkflo
162162
// http://tools.ietf.org/html/rfc5849#section-3.4.1
163163
// if this change causes trouble we need to introduce a flag indicating the specific OAuth implementation level,
164164
// or implement a seperate class for each OAuth version
165+
foreach (var p in client.DefaultParameters.Where(p => p.Type == ParameterType.GetOrPost))
166+
{
167+
parameters.Add( new WebPair( p.Name, p.Value.ToString() ) );
168+
}
165169
foreach (var p in request.Parameters.Where(p => p.Type == ParameterType.GetOrPost))
166170
{
167171
parameters.Add(new WebPair(p.Name, p.Value.ToString()));

0 commit comments

Comments
 (0)