Fix #1066 - OAuth Invalid signature error
authorJessica Tallon <tsyesika@tsyesika.se>
Thu, 20 Aug 2015 11:20:48 +0000 (13:20 +0200)
committerJessica Tallon <tsyesika@tsyesika.se>
Thu, 20 Aug 2015 11:20:48 +0000 (13:20 +0200)
It seems that the GET params on a URL should be included when
one signs the request. Mediagoblin was just using the base URL
without them. This should fix that.

mediagoblin/decorators.py

index bda189880bd490358da3042b6d3e5d05b0936ce8..d20aca100f2890d43fe962d1a65451e12f1ed9c3 100644 (file)
@@ -407,7 +407,7 @@ def oauth_required(controller):
         request_validator = GMGRequestValidator()
         resource_endpoint = ResourceEndpoint(request_validator)
         valid, r = resource_endpoint.validate_protected_resource_request(
-                uri=request.base_url,
+                uri=request.url,
                 http_method=request.method,
                 body=request.data,
                 headers=dict(request.headers),