[OSM-dev] oauth fails after upgrade

Stephan Knauss osm at stephans-server.de
Sun Feb 13 21:47:13 GMT 2011


upgrading to debian squeeze forced me to upgrade php oauth to PECL 1.1.0 

After the upgrade my oauth setup stopped working. While it had no 
problems to authenticate and read users preferences it fails creating 

[lastResponse] => Couldn't authenticate you
[debugInfo] => Array
[sbs] => 

[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


More information about the dev mailing list