1. Jesper Noehr
  2. django-piston-oauth2
  3. Issues
Issue #1 new

signature error when query has list items

created an issue

OAuth signature will be wrong if the request has lists parameters.

In file utils.py @ line 11, you convert request.REQUEST to a dictionary which will result in missing values if request has list items.

I managed to solve this by using this method to convert it: {{{ def querydict_to_dict(querydict): result = {} for k, v in querydict.iterlists(): result[k] = v return result }}} And then the line 11 would become: {{{ return oauth.Request.from_request(request.method, request.build_absolute_uri(request.path), headers, querydict_to_dict(request.GET if request.method == 'GET' else request.POST)) }}}