Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

get normalised parameters should not take into account oauth_ params

  • Loading branch information...
commit 50ca9578f598faff5427e58814e2f45d01d3261c 1 parent 1f05430
@coulix coulix authored joestump committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 oauth2/__init__.py
View
5 oauth2/__init__.py
@@ -359,7 +359,10 @@ def get_normalized_parameters(self):
# Include any query string parameters from the provided URL
query = urlparse.urlparse(self.url)[4]
- items.extend(self._split_url_string(query).items())
+
+ url_items = self._split_url_string(query).items()
+ non_oauth_url_items = list([(k, v) for k, v in url_items if not k.startswith('oauth_')])
+ items.extend(non_oauth_url_items)
encoded_str = urllib.urlencode(sorted(items))
# Encode signature parameters per Oauth Core 1.0 protocol
Please sign in to comment.
Something went wrong with that request. Please try again.