You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 [email protected] on 22 Sep 2014 at 3:25
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 22 Sep 2014 at 3:25The text was updated successfully, but these errors were encountered: