diff options
author | Jessica Tallon <tsyesika@tsyesika.se> | 2015-08-20 13:20:48 +0200 |
---|---|---|
committer | Jessica Tallon <tsyesika@tsyesika.se> | 2015-08-20 13:20:48 +0200 |
commit | 3b4ad554c7ae17b1b6e431e235e7744e7670be89 (patch) | |
tree | bc513314b1780be70a291d853c848d48ed7830bc /mediagoblin/decorators.py | |
parent | de366f735abf84919e0c5c9ef60d419153e76090 (diff) | |
download | mediagoblin-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.py | 2 |
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), |