Open
Description
I am trying to do two legged authentication for a client and server (i am writing both).
If you run the following code you will see that all entries are duplicated for the "normalized parameters". I don't know if I am misusing the library or if this is a bug. It's kind of critical that "Request.get_normalized_parameters()" work well because it is used during signing of HMAC_SHA1 requests.
import oauth2 as oauth
# Build your request up.
request = oauth.Request.from_request('POST', 'http://localhost:8000/test?oauth_body_hash=2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D&oauth_nonce=30577973&oauth_timestamp=1315592487&oauth_consumer_key=meh&oauth_signature_method=HMAC-SHA1&oauth_version=1.0&oauth_signature=EJH9ATMizygjIUZXb36EWK1zElE%3D')
# The following seems to be returning duplicated entries.
request.get_normalized_parameters()
Here's a simple hack fix that I used to get it to work.
So on line, 475 of oauth2.init.py, I went and added this line to get rid of duplicates
items = list(set(items))
Any help would be greatly appreciated.