Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Authenticate OSM API calls #3519
This attempts to make authenticated calls to the OSM API if the user is logged in.
I'm still having some trouble with the map call. The server is not too happy with my attempt to send OAuth headers. Any ideas @zerebubuth ?
Full headers for a typical map call look like this:
Query String Parameters
@bhousel thanks for this, you're great!
I've just pushed a new version of cgimap which gives more info about why a request was unauthorized. Hopefully that will help a little bit. I've also tried out this branch locally to try and repro, but I'm afraid I can't figure out how to make the local instance of iD log in. Is there something I can do to force it to fetch a token?
referenced this pull request
Oct 24, 2016
Discussed in chat already, in case anyone finds this later and wants to know the answer: To force authentication, run
Thanks again, this is working now, merging..