[OSM-dev] OAuth - 401 Authorization Required (OAuth::Unauthorized)

Matt Amos zerebubuth at gmail.com
Mon Sep 27 19:46:50 BST 2010


On Mon, Sep 27, 2010 at 4:24 PM, Christoph Bünte
<tiny-grasshopper at gmx.net> wrote:
> Ok, it seems to me, that I'am the only one having this problem. That makes me think, that either I'm the only one who recently tried to connect an oauth consumer with a provider. Or it is just a ruby issue, like some weeks ago, when a new commit broke this functionality. Or, just to be complete, it is just me having this problem at all, cause my code is somewhat faulty.
>
> Could anyone try the example code with your app? Cause this issue keeps us from starting our beta phase and publish wheelmap to a broader audience.
>
> As always: Any help is highly appreciated.

it looks like oauth now needs the verification token from the callback
/ printed on the website when a token is authorised for OAuth 1.0a
support [1].

i've updated the example at
http://wiki.openstreetmap.org/wiki/OAuth/Examples to reflect this and
it now works for me. hopefully it'll work for you too.

cheers,

matt

[1] http://git.openstreetmap.org/?p=rails.git;a=commit;h=1c3a9ee62b7d1a0dc97d52b1a498be1339d49ebf



More information about the dev mailing list