thomersch / openstreetmap-calendar

osmcal, a Collaborative Calendar for OpenStreetMap-related Events
https://osmcal.org
Apache License 2.0
33 stars 9 forks source link

Cannot authenticate to osm.org from localhost #39

Closed ghost closed 4 years ago

ghost commented 4 years ago

After exporting local variables with osm key and secret, I still have problem with authentication to osm.org. function oauth_callback is not even called (I tested it with printf).

I want to ask if there is something yet to set up than pull request #38 and osm key and secret env. variables?

thomersch commented 4 years ago

So, you've created an OAuth client on osm.org and added your key and secret to OSMCAL_OSM_KEY and OSMCAL_OSM_SECRET, right?

osm.org will redirect back to osmcal after successful login. For this purpose the “Callback URL” has to be configured correctly. For me (hosting locally with default settings) it looks like this:

Screenshot 2020-06-24 at 11 56 01
ghost commented 4 years ago

That would be the problem. I didn't set callback URL (I did it programatically in my another project). I will test it today evening and close the issue asap. Thanks.