Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirection to the authorization server fails in calendar web server example #336

Open
GoogleCodeExporter opened this issue May 13, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant