omab/django-social-auth — Issue #279: Example not working with Google OAuth2
Author: fmoga
Created: 2012-03-02 14:50:12+00:00
State: open

I'm checking out the 0.6.6 tag and running the example. When using Google OAuth2, the app hangs indefinitely.

I've setup a google app through the google api console using `http://localhost:8000/complete/google-oauth2/ `as redirect uri. I've configured `GOOGLE_OAUTH2_CLIENT_ID` and `GOOGLE_OAUTH2_CLIENT_SECRET` with the provided keys as well as `GOOGLE_OAUTH_EXTRA_SCOPE = ['https://www.googleapis.com/auth/userinfo.profile']` in the settings.py file.

OAuth handshake works fine until `/complete/google-oauth2/?code=` gets called. So I can see the Google Login form, permissions screen and at this last redirect it freezes.

Digging through the code it seems like `BaseOAuth2#auth_complete, backends/__init__.py line 646` makes the call to `https://accounts.google.com/o/oauth2/token?...` and hangs there.

Any ideas on what's going wrong?

Thank you