From 3b4ad554c7ae17b1b6e431e235e7744e7670be89 Mon Sep 17 00:00:00 2001 From: Jessica Tallon Date: Thu, 20 Aug 2015 13:20:48 +0200 Subject: [PATCH] Fix #1066 - OAuth Invalid signature error 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediagoblin/decorators.py b/mediagoblin/decorators.py index bda18988..d20aca10 100644 --- a/mediagoblin/decorators.py +++ b/mediagoblin/decorators.py @@ -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), -- 2.25.1