This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Oauth calling for Request Token

1
1

Hi, I'm interested in creating an Oauth 1.0 client for Openstreetmaps. I wanted to make my own client without using libraries. In OSM I saw that callback url is optional and have to set when registering application. But according to normal protocol we have to insert callback as a parameter. In this case I'm confused about what should be included in parameter list that send to Request Token URL ?

asked 04 Aug '12, 17:21

buddhima's gravatar image

buddhima
1166711
accept rate: 0%

edited 05 Aug '12, 12:17

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866

Hi,

Can someone answer this question please? because it is very essential for my project.

common way of requesting is :

oauthRequest('requestTokenURL', 'POST', $parameters)

This $parameters variable only consists of 'callback' url.

I want to know what should I provide at there instead of 'callback' url?

Will it cause any problem if I send it as an empty variable?

Thank you!

(09 Aug '12, 16:43) buddhima
1

If you cannot get any answer here, try to ask at http://forum.osm.org or at one of the https://wiki.openstreetmap.org/wiki/Mailing_lists

(09 Aug '12, 17:25) stephan75

One Answer:

0

Hi, Problem solved! Must mentioned callback url in OSM web site. No use of sending it in requests.

answered 14 Dec '12, 15:54

buddhima's gravatar image

buddhima
1166711
accept rate: 0%

Source code available on GitHub .