Skip to content

Commit 50ca957

Browse files
gregtapjoestump
authored andcommitted
get normalised parameters should not take into account oauth_ params
1 parent 1f05430 commit 50ca957

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

oauth2/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,10 @@ def get_normalized_parameters(self):
359359

360360
# Include any query string parameters from the provided URL
361361
query = urlparse.urlparse(self.url)[4]
362-
items.extend(self._split_url_string(query).items())
362+
363+
url_items = self._split_url_string(query).items()
364+
non_oauth_url_items = list([(k, v) for k, v in url_items if not k.startswith('oauth_')])
365+
items.extend(non_oauth_url_items)
363366

364367
encoded_str = urllib.urlencode(sorted(items))
365368
# Encode signature parameters per Oauth Core 1.0 protocol

0 commit comments

Comments
 (0)