I am developing an app where I need to have users to authenticate against Mapillary using oauth2. I hope you can help me figure out what I am doing wrong.
My problem is, that when I have redirected the user to Mapillary and the user has accepted, I always gets redirected to ?error=invalid_request&error_description=Wrong%20RedirectUri%20provided
I have tried redirect uris with localhost, 127.0.0.1 and on a real online domain, with the same result. All of them has been exact copies of the call back URI I provided when I generated the app keys.
The way I make the URL in Python is:
client_id = ‘Y0NtM3R4Zm52cTBOSUlrTFAwWFFFQTo5ODcxYTgzMTgzNzVhMTNi’
url = ‘http://www.mapillary.com/connect?'+urllib.urlencode({'client_id’:client_id, ‘response_type’:‘token’, ‘scope’:‘user:read’, ‘state’:‘return’, ‘redirect_uri’:‘http://zip.dk/mapillary/’})
which I use to send a Location header with a 302 temporary moved. This part seems to work fine.
An example of a URI I got from Chromes developer console is:
http://www.mapillary.com/connect?scope=user%3Aread&state=return&redirect_uri=http%3A%2F%2Flocalhost%3A7788%2Ftest.py&response_type=token&client_id=Y0NtM3R4Zm52cTBOSUlrTFAwWFFFQTo5ODcxYTgzMTgzNzVhMTNi
Now I hope there is something general with my URI I am doing wrong and I hope someone can help me - perhaps @katrin knows who
PS. I tried mailing hello@mapillary.com but i did not work - I submitted a separate issue on Github.