Attempt to run the "Authorized API for web application example" in "Getting
Started" leads to redirection error during oauth2 authentication.
Steps to reproduce the problem:
1. Set up a project exactly according to the instructions of "Setup for
example". Specifically, edit the Redirect URIs field to http://localhost:8080
as instructed.
2. Download the example code authorized_api_web_server_calendar.py
3. Run the example exactly as "Run the example" instructs, with the command
line:
$ python authorized_api_web_server_calendar.py your_client_id
your_client_secret.
The expected output for the first run is redirection to the authorization
server when a url request to http://localhost:8080/?fake_user=joe is entered
from a browser.
Instead, an error page shows up with Error: redirect_uri_mismatch.
The problem can be solved by removing the appending slash in line 39 of the
python code:
redirect_uri='http://localhost:8080/')
=>
redirect_uri='http://localhost:8080')
Original issue reported on code.google.com by hematt...@gmail.com on 22 Sep 2014 at 3:25
Original issue reported on code.google.com by
hematt...@gmail.com
on 22 Sep 2014 at 3:25