Closed cristianmtr closed 9 years ago
http://discussions.udacity.com/t/oauth-course-google-sign-in-doesnt-work/15444
Try the link above.
Regards, Linus
@cristianmtr, did downgrading werkzeug solve your issue? You can do this by typing the following three commands inside your vagrant environment:
pip install werkzeug==0.8.3 pip install flask==0.9 pip install Flask-Login==0.1.3
Is there a way to solve this issue without downgrading werkzeug? Thanks in advance!
from oauth2client.client import AccessTokenCredentials
# store only the access_token
login_session['credentials'] = credentials.access_token
# return credential object
credentials = AccessTokenCredentials(login_session['credentials'], 'user-agent-value')
Just had the same problem, but the solution from Linus works perfectly - thanks man! :-)
I was also having this problem and finally fixed it by changing line 100 from
login_session['credentials'] = credentials
to
login_session['credentials'] = credentials.access_token
I can't access the thread on the discussion form that Linus posted, presumably because I'm in a later cohort. Is there any information there about this that I should know? I'm not sure if my change will cause problems later on.
I using the method @jrleszcz suggested and it seems to have fixed the problem. Thanks
just remember if you use this approach in the disconnect url code it sets
credentials = login_session.get('credentials')
a few line below that you should change
access_token = credentials.access_token
to
access_token = credentials
thanks @jrleszcz and @Sesshoumaru404
Thanks @jrleszcz ,your comment helped me..:)
I ran into this issue during P5. lobrowns solution of downgrading the right packages worked great, but I think I had to reset my server before it took effect.
sudo service apache2 restart
@linusdong you saved my life. Please don't forget to contact me if you ever have chance to visit Tokyo. I will introduce you to the best sightseeing places.
very helpful, thank you.
In lesson 2, step 5:
After I accept the terms for the application to connect to my g+ account, I get the following error in the terminal. The browser does not redirect. I have also tried to run the same test with code supplied here on github, even from future steps in this lesson.