[OSM-dev] oauth fails after upgrade
Stephan Knauss
osm at stephans-server.de
Sun Feb 13 21:47:13 GMT 2011
Hi,
upgrading to debian squeeze forced me to upgrade php oauth to PECL 1.1.0
oauth
After the upgrade my oauth setup stopped working. While it had no
problems to authenticate and read users preferences it fails creating
changesets:
[lastResponse] => Couldn't authenticate you
[debugInfo] => Array
(
[sbs] =>
GET&http%3A%2F%2Fapi.openstreetmap.org%2Fapi%2F0.6%2Fchangeset%2Fcreate&oauth_consumer_key%3Dxxxxxxxxxx%26oauth_nonce%3D9584649794d584685581e67.27179618%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1297630853%26oauth_token%3Dxxxxxxxxxx%26oauth_version%3D1.0
[headers_recv] => HTTP/1.1 401 Authorization Required
Date: Sun, 13 Feb 2011 21:00:53 GMT
Server: Apache/2.2.14 (Ubuntu)
X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.1
WWW-Authenticate: Basic realm="Web Password"
X-Runtime: 3
Cache-Control: no-cache
Content-Length: 25
Status: 401
Vary: Accept-Encoding
Connection: close
Content-Type: text/html; charset=utf-8
[body_recv] => Couldn't authenticate you
I already recreated the token, has no effect.
I'm feeling a bit lost as there are not that many hints what may be
wrong here.
using this call:
$ret = $oauth->fetch("$api_url/changeset/create",
$changesetRequest, OAUTH_HTTP_METHOD_PUT );
Could it be related to this? http://wiki.openstreetmap.org/wiki/OAuth/10a
Stephan
More information about the dev
mailing list