aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/decorators.py
diff options
context:
space:
mode:
authorJessica Tallon <tsyesika@tsyesika.se>2015-08-20 13:20:48 +0200
committerJessica Tallon <tsyesika@tsyesika.se>2015-08-20 13:20:48 +0200
commit3b4ad554c7ae17b1b6e431e235e7744e7670be89 (patch)
treebc513314b1780be70a291d853c848d48ed7830bc /mediagoblin/decorators.py
parentde366f735abf84919e0c5c9ef60d419153e76090 (diff)
downloadmediagoblin-3b4ad554c7ae17b1b6e431e235e7744e7670be89.tar.lz
mediagoblin-3b4ad554c7ae17b1b6e431e235e7744e7670be89.tar.xz
mediagoblin-3b4ad554c7ae17b1b6e431e235e7744e7670be89.zip
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.
Diffstat (limited to 'mediagoblin/decorators.py')
-rw-r--r--mediagoblin/decorators.py2
1 files changed, 1 insertions, 1 deletions
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),