bbangert / velruse

Simplifying third-party authentication for web applications.
http://packages.python.org/velruse/index.html
MIT License
252 stars 86 forks source link

Google_oauth2 failure #113

Closed osallou closed 11 years ago

osallou commented 11 years ago

Hi, I faced a Google auth2 failure when trying to connect using my Google account.

Problem was that 'name' was not present in data (velruse/providers/google_oauth2.py around line 170 to get displayname).

I suggest to test if name is present, else to set email in displayname

Don't know why, but depending on account, seems that name is not always present (I only needed email by the way).

this raise an exception.