Skip to content

Commit

Permalink
Fixes OAuth1 signature with special characters (restsharp#2126, rests…
Browse files Browse the repository at this point in the history
  • Loading branch information
elia936 committed Aug 16, 2023
1 parent 36ebe2f commit 4f17fc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RestSharp/Authenticators/OAuth/OAuthTools.cs
Expand Up @@ -142,7 +142,7 @@ static class OAuthTools {
internal static IEnumerable<string> SortParametersExcludingSignature(WebPairCollection parameters)
=> parameters
.Where(x => !x.Name.EqualsIgnoreCase("oauth_signature"))
.Select(x => new WebPair(UrlEncodeStrict(x.Name), UrlEncodeStrict(x.Value)))
.Select(x => new WebPair(UrlEncodeStrict(x.Name), UrlEncodeRelaxed(x.Value)))
.OrderBy(x => x, WebPair.Comparer)
.Select(x => x.GetQueryParameter(false));

Expand Down

0 comments on commit 4f17fc5

Please sign in to comment.