projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de366f7
)
Fix #1066 - OAuth Invalid signature error
author
Jessica Tallon
<tsyesika@tsyesika.se>
Thu, 20 Aug 2015 11:20:48 +0000
(13:20 +0200)
committer
Jessica 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
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/decorators.py
b/mediagoblin/decorators.py
index bda189880bd490358da3042b6d3e5d05b0936ce8..d20aca100f2890d43fe962d1a65451e12f1ed9c3 100644
(file)
--- 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),