Re: [OSM-dev] OAuth difficulties from node.js client

2020-07-16 Thread Nick Whitelegg
one or two other packages and see if they work. Thanks, Nick From: Mateusz Konieczny via dev Sent: 16 July 2020 17:00 Cc: dev@openstreetmap.org Subject: Re: [OSM-dev] OAuth difficulties from node.js client Osm website had sone downtime, maybe your code is ok

Re: [OSM-dev] OAuth difficulties from node.js client

2020-07-16 Thread Tom Hughes via dev
On 16/07/2020 16:04, Nick Whitelegg wrote: Fiurthermore, if I use curl to send the same data to the endpoint, I also get a 500: curl --data

Re: [OSM-dev] OAuth difficulties from node.js client

2020-07-16 Thread Mateusz Konieczny via dev
Osm website had sone downtime, maybe your code is ok? 16 Jul 2020, 17:04 by nick.whitel...@solent.ac.uk: > Hello everyone, > > Realise this might be a difficult one, but posting it here in case anyone's > encountered similar problems or if anyone can obviously see what's wrong with > the

[OSM-dev] OAuth difficulties from node.js client

2020-07-16 Thread Nick Whitelegg
Hello everyone, Realise this might be a difficult one, but posting it here in case anyone's encountered similar problems or if anyone can obviously see what's wrong with the request (see below). I'm trying to connect to the OSM OAuth API request_token endpoint from a node.js based client. If

Re: [OSM-dev] oauth token lifetime

2019-05-02 Thread Jiri Vlasak
On Sat, Apr 27, 2019 at 02:40:13PM +0100, Tom Hughes wrote: > On 27/04/2019 14:37, Jiri Vlasak wrote: > > On Fri, Apr 26, 2019 at 07:28:39PM +0100, Tom Hughes wrote: > > > On 26/04/2019 19:06, Jiri Vlasak wrote: > > > > This approach is similar to one used by HOT Tasking Manager [1]. In my > > >

Re: [OSM-dev] oauth token lifetime

2019-04-27 Thread Tom Hughes
On 27/04/2019 14:37, Jiri Vlasak wrote: On Fri, Apr 26, 2019 at 07:28:39PM +0100, Tom Hughes wrote: On 26/04/2019 19:06, Jiri Vlasak wrote: This approach is similar to one used by HOT Tasking Manager [1]. In my "oauth settings" section I have many many "Tasking Manager 3 - Prod" tokens. And I

Re: [OSM-dev] oauth token lifetime

2019-04-27 Thread Jiri Vlasak
On Fri, Apr 26, 2019 at 07:28:39PM +0100, Tom Hughes wrote: > On 26/04/2019 19:06, Jiri Vlasak wrote: > > This approach is similar to one used by HOT Tasking Manager [1]. In my > > "oauth > > settings" section I have many many "Tasking Manager 3 - Prod" tokens. And I > > feel this approach is not

Re: [OSM-dev] oauth token lifetime

2019-04-26 Thread Tom Hughes
On 26/04/2019 19:06, Jiri Vlasak wrote: I would like to ask about the lifetime of OAuth token. I use OSM OAuth to log into my web application. However, there is new token each time I log into the web page. I don't believe there is any expiry - once you have an access token you can use it for

[OSM-dev] oauth token lifetime

2019-04-26 Thread Jiri Vlasak
Dear devs, I would like to ask about the lifetime of OAuth token. I use OSM OAuth to log into my web application. However, there is new token each time I log into the web page. This approach is similar to one used by HOT Tasking Manager [1]. In my "oauth settings" section I have many many

Re: [OSM-dev] oauth api errors?

2016-05-24 Thread Grant Slater
Hi, Solve in a discussion on #osm-dev via http://irc.openstreetmap.org the issue was Christian updated his python2 to python3 causing an issue with a oauth library he used. Kind regards, Grant On 24 May 2016 at 10:59, Christian Ledermann wrote: > since a few

[OSM-dev] oauth api errors?

2016-05-24 Thread Christian Ledermann
since a few days I cannot connect to osm via the Oauthapi any more 500 Server Error: Internal Server Error for url: http://www.openstreetmap.org/oauth/request_token same for api06.dev 500 Server Error: Internal Server Error for url: http://api06.dev.openstreetmap.org/oauth/request_token

[OSM-dev] OAuth Permission screen

2013-01-30 Thread Christoph Bünte
Hi, i just helped a friend to register an openstreetmap account. After that, we signed in to wheelmap.org using the osm account. But the screen when asking for the permissions was pretty empty. It did not say what app would like to use the permissions. See here:

Re: [OSM-dev] OAuth Permission screen

2013-01-30 Thread Tom Hughes
On 30/01/13 16:51, Christoph Bünte wrote: i just helped a friend to register an openstreetmap account. After that, we signed in to wheelmap.org using the osm account. But the screen when asking for the permissions was pretty empty. It did not say what app would like to use the permissions.

[OSM-dev] OAuth Question

2012-06-13 Thread Eric Wolf
I'm trying to get alternate versions of Potlatch2 set up on the USGS instance of the Rails Port. For some reason, I can't get my alternates to authorize properly with Oauth. For instance, you can use the default version at http://navigator.er.usgs.gov with the edit tab but if you go straight to

[OSM-dev] oAuth PUT not working

2012-01-15 Thread Stephan Knauss
Hi, I had a working PHP script to edit tags. It uses the pecl oauth library. Now it stopped working. I suppose it is broken since the last changes on the OSM servers end of November. The script is rarely used so I just noticed the problem. My token is valid. It is possible to issue a GET

Re: [OSM-dev] oAuth PUT not working

2012-01-15 Thread Stephan Knauss
Hi, for the archive... On 15.01.2012 18:39, Stephan Knauss wrote: I sniffed JOSM communication to spot any difference in the oauth setup. To my surprise there was no difference, still my requests failed with 401. So I compared other headers as well. It happened that I did not declare any

Re: [OSM-dev] oAuth PUT not working

2012-01-15 Thread Tom Hughes
On 15/01/12 19:26, Stephan Knauss wrote: But why did it respond with 401 Authorization Required? I guess there are other http status codes more appropriate. Why not 400 Bad Request? Were you perhaps using an XML content type when computing the signature? That would lead to a signature

Re: [OSM-dev] oAuth PUT not working

2012-01-15 Thread Stephan Knauss
Hello Tom, thank you for looking into this issue. On 15.01.2012 20:42, Tom Hughes wrote: On 15/01/12 19:26, Stephan Knauss wrote: But why did it respond with 401 Authorization Required? I guess there are other http status codes more appropriate. Why not 400 Bad Request? Were you perhaps

Re: [OSM-dev] oAuth PUT not working

2012-01-15 Thread Tom Hughes
On 16/01/12 00:21, Stephan Knauss wrote: Could it happen that the signature verification on the server is now more strict so a thing that worked in the past is now failing? Simply put, no. The set of things included in the signature is fixed and if either end fails to include the right

Re: [OSM-dev] OAuth down

2011-12-15 Thread Walter Nordmann
Tom Hughes-3 wrote On 16/11/11 17:25, Pierre Giraud wrote: I just tested JOSM by setting explicitely that I wanted to use the OAuth authentication. And I received an error when getting the access request. I think it should be fixed now. Tom hi tom, can't get oauth running on

Re: [OSM-dev] OAuth down

2011-11-19 Thread Pierre GIRAUD
With this patch applied, I had to revert my application code to what it was before I started having problems (before the Ruby3 upgrade). I'm lost. Pierre On Sat, Nov 19, 2011 at 1:27 AM, Tom Hughes t...@compton.nu wrote: On 18/11/11 19:58, Tom Hughes wrote: It seems the callbacks not working

Re: [OSM-dev] OAuth down

2011-11-19 Thread Tom Hughes
On 19/11/11 11:45, Pierre GIRAUD wrote: With this patch applied, I had to revert my application code to what it was before I started having problems (before the Ruby3 upgrade). I'm lost. What version of OAuth are you claiming? If you're claiming 1.0 then that is probably correct because you

Re: [OSM-dev] OAuth down

2011-11-19 Thread Pierre GIRAUD
As already said, I don't claim any specific version. Which is somewhat wrong. Or maybe the library I use does it for me. I want to make things as clear as possible on my side before I get back to you. Pierre On Sat, Nov 19, 2011 at 12:51 PM, Tom Hughes t...@compton.nu wrote: On 19/11/11 11:45,

Re: [OSM-dev] OAuth down

2011-11-19 Thread Tom Hughes
On 19/11/11 12:00, Pierre GIRAUD wrote: As already said, I don't claim any specific version. Which is somewhat wrong. Or maybe the library I use does it for me. That is actually valid as 1.0 is the default, and 1.0a doesn't actually use a separate version - it is triggered by the presence of

Re: [OSM-dev] OAuth down

2011-11-19 Thread Pierre GIRAUD
Hey Tom, Thanks again for your efforts! I'm now using 1.0a (setting a callback when requesting a token) and it works fine again. My concerns now are to avoid the authorization multiplication ie. to prevent users from being asked several times for a permission they already gave. Shouldn't there

Re: [OSM-dev] OAuth down

2011-11-19 Thread Tom Hughes
On 19/11/11 19:15, Pierre GIRAUD wrote: My concerns now are to avoid the authorization multiplication ie. to prevent users from being asked several times for a permission they already gave. Well just carry on using the same access token that you got the first time. You only get proliferation

Re: [OSM-dev] OAuth down

2011-11-19 Thread Pierre GIRAUD
I'm probably missing something obvious. My apologizes if it's actually the case. I don't know if we can trust that, but in the facebook example previously given, they're talking about OAuth 2.0. Anyway, my problem is that I cannot really cache the access token and the corresponding secret. My

Re: [OSM-dev] OAuth down

2011-11-19 Thread Pierre GIRAUD
Here's an other good example. http://www.jaisenmathai.com/sign_in_with_twitter/start.php Even better, the authorization step is only required once, unless you manually revoke permission on the twitter account settings. Pierre On Sun, Nov 20, 2011 at 12:10 AM, Pierre GIRAUD

Re: [OSM-dev] OAuth down

2011-11-19 Thread Tom Hughes
On 19/11/11 23:10, Pierre GIRAUD wrote: I don't know if we can trust that, but in the facebook example previously given, they're talking about OAuth 2.0. Which we don't support yet. Actually it's a bit more complicated than that, because it might work, bit I haven't tested it at all so I'm

Re: [OSM-dev] OAuth down

2011-11-18 Thread Tom Hughes
On 17/11/11 22:31, Pierre GIRAUD wrote: I suspect something goes wrong in the oauth1_authorize method: https://github.com/pelle/oauth-plugin/blob/master/lib/oauth/controllers/provider_controller.rb#L101 If I understand correctly, the browser should be redirected to redirect_url. This

Re: [OSM-dev] OAuth down

2011-11-18 Thread Tom Hughes
On 18/11/11 16:59, Pierre GIRAUD wrote: Giving details on what you did on the tester helped me a lot. I can confirm that the callback is correctly used. The difference is that I used to set the callback in the authorize call. Putting it earlier in request_token request helped me going a step

Re: [OSM-dev] OAuth down

2011-11-18 Thread Pierre GIRAUD
Hey! The problem is fixed. You were right. The problem came also from a missing verifier parameter. I actually don't set the version in the requests. Which is definitely wrong. I also need to read the docs a bit more because I think I also have an issue with the user authorization step. A new

Re: [OSM-dev] OAuth down

2011-11-18 Thread Tom Hughes
On 18/11/11 19:52, Pierre GIRAUD wrote: Hey! The problem is fixed. You were right. The problem came also from a missing verifier parameter. I actually don't set the version in the requests. Which is definitely wrong. I also need to read the docs a bit more because I think I also have an issue

Re: [OSM-dev] OAuth down

2011-11-18 Thread Tom Hughes
On 18/11/11 19:58, Tom Hughes wrote: It seems the callbacks not working with 1.0 is a bug in the plugin which I'm working on fixing now... I've sent a pull request upstream with my fix: https://github.com/pelle/oauth-plugin/pull/99 I've also patched in a fixed version of the method in our

Re: [OSM-dev] OAuth down

2011-11-17 Thread Andy Allan
On 17 November 2011 06:59, Pierre GIRAUD pierre.gir...@gmail.com wrote: Can you point me to urls to show me what changed recently ? (commits, diffs) https://github.com/openstreetmap/openstreetmap-website/network The what changed recently was that we upgraded from rails 2.x to 3.1 - so many

Re: [OSM-dev] OAuth down

2011-11-17 Thread Tom Hughes
On 17/11/11 08:58, Andy Allan wrote: On 17 November 2011 06:59, Pierre GIRAUDpierre.gir...@gmail.com wrote: Can you point me to urls to show me what changed recently ? (commits, diffs) https://github.com/openstreetmap/openstreetmap-website/network The what changed recently was that we

Re: [OSM-dev] OAuth down

2011-11-17 Thread Pierre GIRAUD
Hi, I had a look at the oauth-plugin code (https://github.com/pelle/oauth-plugin) which is supposed to be used in OSM website to find where there could be an issue. I suspect something goes wrong in the oauth1_authorize method:

Re: [OSM-dev] OAuth down

2011-11-16 Thread Pierre Giraud
On Wed, Nov 16, 2011 at 8:11 AM, Tom Hughes t...@compton.nu wrote: On 16/11/11 07:00, Pierre Giraud wrote: Am I the only one to have encountered issues with the OAuth service since yesterday? It doesn't seem to respond anymore. Well Potlatch uses it, so if it wasn't working I think we would

Re: [OSM-dev] OAuth down

2011-11-16 Thread Tom Hughes
On 16/11/11 17:25, Pierre Giraud wrote: I just tested JOSM by setting explicitely that I wanted to use the OAuth authentication. And I received an error when getting the access request. I think it should be fixed now. Tom -- Tom Hughes (t...@compton.nu) http://compton.nu/

Re: [OSM-dev] OAuth down

2011-11-16 Thread Pierre GIRAUD
Indeed, that's better. There's still a problem though. The oauth_callback doesn't seem to be taken into account. For your information, the application I've developing is http://tasks.hotosm.org. Pierre On Wed, Nov 16, 2011 at 11:47 PM, Tom Hughes t...@compton.nu wrote: On 16/11/11 17:25,

Re: [OSM-dev] OAuth down

2011-11-16 Thread Tom Hughes
On 16/11/11 22:56, Pierre GIRAUD wrote: There's still a problem though. The oauth_callback doesn't seem to be taken into account. I can't see any obvious reason for this, and I don't really have a way to test it. The code that handles this is largely in the plugins we use rather than our

Re: [OSM-dev] OAuth down

2011-11-16 Thread Pierre GIRAUD
Can you point me to urls to show me what changed recently ? (commits, diffs) Thanks a lot. On Thu, Nov 17, 2011 at 1:47 AM, Tom Hughes t...@compton.nu wrote: On 16/11/11 22:56, Pierre GIRAUD wrote: There's still a problem though. The oauth_callback doesn't seem to be taken into account. I

[OSM-dev] OAuth down

2011-11-15 Thread Pierre Giraud
Hi all, Am I the only one to have encountered issues with the OAuth service since yesterday? It doesn't seem to respond anymore. Curiously using the for development and testing purposes urls is OK [2]. I can't use them in my application though. I get 503 Unauthorized errors, as if my application

Re: [OSM-dev] OAuth down

2011-11-15 Thread Tom Hughes
On 16/11/11 07:00, Pierre Giraud wrote: Am I the only one to have encountered issues with the OAuth service since yesterday? It doesn't seem to respond anymore. Well Potlatch uses it, so if it wasn't working I think we would have had a few complaints by now. Equally I used JOSM yesterday

Re: [OSM-dev] oauth fails after upgrade

2011-02-15 Thread Andy Allan
On Mon, Feb 14, 2011 at 9:29 PM, Stephan Knauss o...@stephans-server.de wrote: I wonder why the api did not return a 405. This could have helped tracking down the issue faster. changeset/close did return a 405. Interesting. If you can track down which bit of the API code needs changing so

Re: [OSM-dev] oauth fails after upgrade

2011-02-14 Thread Stephan Knauss
On 14.02.2011 06:45, Tom Hughes wrote: On 14/02/11 10:47, Stephan Knauss wrote: upgrading to debian squeeze forced me to upgrade php oauth to PECL 1.1.0 oauth Did that upgrade perhaps cause you to switch fro OAuth 1.0 to 1.0a? I think not. The changelog from 0.99.99 to 1.1.0 does not list

Re: [OSM-dev] oauth fails after upgrade

2011-02-14 Thread Stephan Knauss
On 14.02.2011 09:20, Stephan Knauss wrote: I managed to resolve the issue. The behavior of the lib changed from 0.99.9 to 1.1.0 I just wonder: Why does the string in the error message start with GET? [sbs] = GEThttp%3A%2F I'm telling it to PUT: $ret = $oauth-fetch($api_url/changeset/create,

[OSM-dev] oAuth vs. SSL

2011-02-14 Thread Chris Browet
Hi, I tend to think that oAuth is not a great solution for desktop client vs net server, and kind of reinventing the wheel vs. SSL. Key benefit of oAuth are, IMHO, the revoking ability, which is a bit pointless for a desktop app, and the fact that men-in-the-middle do not know your credential

Re: [OSM-dev] oAuth vs. SSL

2011-02-14 Thread Tom Hughes
On 15/02/11 14:15, Chris Browet wrote: I tend to think that oAuth is not a great solution for desktop client vs net server, and kind of reinventing the wheel vs. SSL. Key benefit of oAuth are, IMHO, the revoking ability, which is a bit pointless for a desktop app, and the fact that

[OSM-dev] oauth fails after upgrade

2011-02-13 Thread Stephan Knauss
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] =

Re: [OSM-dev] oauth fails after upgrade

2011-02-13 Thread Tom Hughes
On 14/02/11 10:47, Stephan Knauss wrote: upgrading to debian squeeze forced me to upgrade php oauth to PECL 1.1.0 oauth Did that upgrade perhaps cause you to switch fro OAuth 1.0 to 1.0a? After the upgrade my oauth setup stopped working. While it had no problems to authenticate and read

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

2010-09-27 Thread Christoph Bünte
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

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

2010-09-27 Thread Matt Amos
On Mon, Sep 27, 2010 at 4:24 PM, Christoph Bünte tiny-grasshop...@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

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

2010-09-27 Thread Tom Hughes
On 27/09/10 19:46, Matt Amos wrote: On Mon, Sep 27, 2010 at 4:24 PM, Christoph Bünte tiny-grasshop...@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

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

2010-09-24 Thread Christoph Bünte
Hi, today a user on wheelmap.org complained about getting an authorization required error when authenticating his osm account via oauth. I had a look into this issue and tried it my account. Result was the same error. So i went to the osm oauth example and ran the example code

[OSM-dev] oauth code

2010-08-21 Thread Anthony
Anyone have or know of any example code for doing oauth with OSM in PHP or perl? ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev

Re: [OSM-dev] oauth code

2010-08-21 Thread Lars Francke
Anyone have or know of any example code for doing oauth with OSM in PHP or perl? http://oauth.net/code/ Just remember that OSM uses OAuth 1.0 and not 1.0a. osm-f...@googlegroups.com? Got anything done yet? Cheers, Lars ___ dev mailing list

Re: [OSM-dev] oauth code

2010-08-21 Thread Anthony
On Sat, Aug 21, 2010 at 3:58 PM, Lars Francke lars.fran...@gmail.com wrote: Anyone have or know of any example code for doing oauth with OSM in PHP or perl? http://oauth.net/code/ So no? I uploaded a quick hack at http://commonmap.info/w/index.php/Oauth_perl_examples Sorry about the cross

Re: [OSM-dev] oauth code

2010-08-21 Thread Anthony
On Sat, Aug 21, 2010 at 6:01 PM, Anthony o...@inbox.org wrote: I uploaded a quick hack at http://commonmap.info/w/index.php/Oauth_perl_examples This gets the access token no problem. But then what do you do with the access token? ___ dev mailing

Re: [OSM-dev] oauth code

2010-08-21 Thread Lars Francke
So no? Well...OSM does nothing special in regards to OAuth so any tutorial will do. This gets the access token no problem.  But then what do you do with the access token? The access token is called token credentials now. And this explains how an authenticated request is made:

Re: [OSM-dev] oauth code

2010-08-21 Thread Anthony
Thank you! I figured it out and updated http://commonmap.info/w/index.php/Oauth_perl_examples It seems that the proper command for using the token within Net::OAuth is protected resource. On Sat, Aug 21, 2010 at 7:04 PM, Lars Francke lars.fran...@gmail.com wrote: So no? Well...OSM does

Re: [OSM-dev] OAuth API authrorization problems using Signpost library

2010-06-03 Thread Vitaliy Grigoruk
Is it possible that this commit is the reason of bug? http://git.openstreetmap.org/?p=rails.git;a=commit;h=41a123334bc75d17335e3f242b0243ddfd3e6389 On Wed, Jun 2, 2010 at 4:55 PM, Peter Körner osm-li...@mazdermind.dewrote: Peter Körner schrieb: Vitaliy Grigoruk schrieb: I'm constantly

Re: [OSM-dev] OAuth 401 Unauthorized

2010-06-02 Thread Christoph Bünte
Can someone confirm, that oauth is working on the live system? Hi, I have a similar problem. My app was working since few weeks but stopped recently (error 401)... I tried again with the dev api and my code works fine with it. I also tried to use OAuth with JOSM and I have this exception

[OSM-dev] OAuth API authrorization problems using Signpost library

2010-06-02 Thread Vitaliy Grigoruk
Hi, All I'm constantly getting this error while trying to get request token from http://www.openstreetmap.org: oauth.signpost.exception.OAuthNotAuthorizedException: Authorization failed (server replied with a 401). This can happen if the consumer key was not correct or the signatures did not

Re: [OSM-dev] OAuth API authrorization problems using Signpost library

2010-06-02 Thread Peter Körner
Vitaliy Grigoruk schrieb: I'm constantly getting this error while trying to get request token from http://www.openstreetmap.org: You're not the only one: http://lists.openstreetmap.org/pipermail/dev/2010-May/019620.html Peter ___ dev mailing list

Re: [OSM-dev] OAuth API authrorization problems using Signpost library

2010-06-02 Thread Peter Körner
Peter Körner schrieb: Vitaliy Grigoruk schrieb: I'm constantly getting this error while trying to get request token from http://www.openstreetmap.org: You're not the only one: http://lists.openstreetmap.org/pipermail/dev/2010-May/019620.html Ähh wrong link -

Re: [OSM-dev] OAuth 401 Unauthorized

2010-06-02 Thread Andy Allan
On Wed, Jun 2, 2010 at 7:15 AM, Christoph Bünte tiny-grasshop...@gmx.net wrote: Can someone confirm, that oauth is working on the live system? Hi, I have a similar problem. My app was working since few weeks but stopped recently (error 401)... I tried again with the dev api and my code works

Re: [OSM-dev] OAuth 401 Unauthorized

2010-05-30 Thread Olivier
Christoph Bünte tiny-grasshopper at gmx.net writes: Can someone confirm, that oauth is working on the live system? Thanks a lot, Christoph Hi, I have a similar problem. My app was working since few weeks but stopped recently (error 401)... I tried again with the dev api and my code

[OSM-dev] OAuth 401 Unauthorized

2010-05-28 Thread Christoph Bünte
Hi there, I just started developing an osm client website. I Already registered this app with my osm account and got key and secret. When I try to create a request_token, the osm oauth service always returns a HTTP status code 401 Unauthorized. Is there anything wrong with my key and secret?

Re: [OSM-dev] OAuth 401 Unauthorized

2010-05-28 Thread Andy Allan
On Fri, May 28, 2010 at 11:02 AM, Christoph Bünte tiny-grasshop...@gmx.net wrote: Hi there, I just started developing an osm client website. I Already registered this app with my osm account and got key and secret. When I try to create a request_token, the osm oauth service always returns a

Re: [OSM-dev] OAuth 401 Unauthorized

2010-05-28 Thread Christoph Bünte
Hi Andy, Am 28.05.2010 um 12:40 schrieb Andy Allan: On Fri, May 28, 2010 at 11:02 AM, Christoph Bünte tiny-grasshop...@gmx.net wrote: This is my piece of ruby code, which is closely related to the OAuth example: http://wiki.openstreetmap.org/wiki/OAuth/Examples I've updated the

[OSM-dev] Oauth on dev server

2009-09-07 Thread Etienne Chové
Hi, I have an error on dev server requesting oauth token (it was ok last week) : http://oauth.old-dev.openstreetmap.org/oauth/request_token = error 404 Cheers Etienne ___ dev mailing list dev@openstreetmap.org

Re: [OSM-dev] Oauth on dev server

2009-09-07 Thread Tom Hughes
On 07/09/09 10:54, Etienne Chové wrote: I have an error on dev server requesting oauth token (it was ok last week) : http://oauth.old-dev.openstreetmap.org/oauth/request_token = error 404 You're using the wrong server - the URL you want is:

Re: [OSM-dev] Oauth on dev server

2009-09-07 Thread Etienne Chové
Tom Hughes a écrit : You're using the wrong server - the URL you want is: http://oauth.dev.openstreetmap.org/oauth/request_token Thanks, it looks better. The dev database have been cleaned ? Etienne ___ dev mailing list dev@openstreetmap.org

Re: [OSM-dev] Oauth on dev server

2009-09-07 Thread Tom Hughes
On 07/09/09 14:45, Etienne Chové wrote: Tom Hughes a écrit : You're using the wrong server - the URL you want is: http://oauth.dev.openstreetmap.org/oauth/request_token Thanks, it looks better. The dev database have been cleaned ? Possibly - I'm not sure if Edgemaster transferred them to

Re: [OSM-dev] Oauth on dev server

2009-09-07 Thread Thomas Wood
2009/9/7 Tom Hughes t...@compton.nu: On 07/09/09 14:45, Etienne Chové wrote: Tom Hughes a écrit : You're using the wrong server - the URL you want is: http://oauth.dev.openstreetmap.org/oauth/request_token Thanks, it looks better. The dev database have been cleaned ? Possibly - I'm not

Re: [OSM-dev] Oauth on dev server

2009-09-07 Thread Shaun McDonald
On 7 Sep 2009, at 16:43, Thomas Wood wrote: I couldn't be bothered with the fuss of moving over what are testing databases since the data on them shouldn't be valuable. Also note that the oauth functionality of the oauth branch is now in trunk. Also note that there are developers out

[OSM-dev] oauth token validity

2009-08-31 Thread Etienne Chové
Hi, I'm trying to implement oauth on my online application. It works (using the dev server) and I can get request token, authorize it, get access token and modify data. My question are on access token expiration : - how to know when a token will expire ? - does user activity change

Re: [OSM-dev] OAuth

2009-08-29 Thread Sven Anders
Am Friday 28 August 2009 13:49:42 schrieb Lars Francke: In case anyone else missed this (at least I couldn't find any announcement): OAuth seems to be live on openstreetmap.org. I want to use it with my application. I have downloaded php auth by the command: svn co

Re: [OSM-dev] OAuth

2009-08-29 Thread Tom Hughes
On 29/08/09 12:12, Sven Anders wrote: How do I get API Access? (For the start i am only interessed in the mailaddres and the username) You won't be able to get the email address. Tom -- Tom Hughes (t...@compton.nu) http://www.compton.nu/ ___ dev

Re: [OSM-dev] OAuth

2009-08-28 Thread Lars Francke
In case anyone else missed this (at least I couldn't find any announcement): OAuth seems to be live on openstreetmap.org. Cheers, Lars ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev

Re: [OSM-dev] OAuth

2009-06-28 Thread Frederik Ramm
Hi, Matt Amos wrote: at the moment there isn't an API to interrogate a token to find out which capabilities it has, but if that's wanted it can be added. the workflow is like this: 1. application developer registers with OSM, and sets up those permissions which their app wants/needs, 2.

Re: [OSM-dev] OAuth

2009-06-27 Thread Thomas Wood
2009/6/27 Frederik Ramm frede...@remote.org: Hi,    I just wanted to say (though it isn't normally my style) that I think this OAuth stuff is really great and a leap forward for the OSM developer community. Thank you for implementing that! Until now, developers were forced to either deal

Re: [OSM-dev] OAuth

2009-06-27 Thread Tom Hughes
Frederik Ramm wrote: I haven't looked at your implementation - which SVN revision should I check out to do so? It's on a branch for now - rails_port_branches/oauth is what you want. Does the implementation * allow third party applications to identify an OSM user so that they can, for

Re: [OSM-dev] OAuth

2009-06-27 Thread Frederik Ramm
Hi, Tom Hughes wrote: That isn't really how OAuth works. OAuth allows an application to say to a web site I would like to do X and the site then interacts with the user to get their permission (by asking them to log in if necessary and then to confirm they want to grant permission to the

Re: [OSM-dev] OAuth

2009-06-27 Thread Matt Amos
On Sat, Jun 27, 2009 at 3:17 PM, Tom Hughest...@compton.nu wrote: Frederik Ramm wrote: Is the application required to keep track of which operations are allowed with the token and which aren't? I mean, if I am the application and I send my user over to OSM to get permission for reading his

Re: [OSM-dev] OAuth

2009-06-23 Thread Matt Amos
On Tue, Jun 23, 2009 at 3:53 AM, Tom Hughest...@compton.nu wrote: 2009/6/23 Matt Amos zerebub...@gmail.com i've committed a working version of OAuth token support for OSM. it turns out that ajturner and i were working on it independently, so it makes sense to share code. I have uncommitted

Re: [OSM-dev] OAuth

2009-06-23 Thread Stefan Baebler
please DO NOT revert my work without talking to me first. OSM doesn't stop just because you're on holiday. +1 Do not get me wrong. Tom undoubtedly puts in a lot of effort and does great work. However, if the huge community relies on a single person to do all code checks before deploying it, and