bbangert / velruse

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

data['email'] raises KeyError with velruse.google.scope = 'opend profile' #126

Open invisibleroads opened 11 years ago

invisibleroads commented 11 years ago

In velruse.providers.google_oauth2, using velruse.google.scope = 'opend profile' provides the following keys:

>> data.keys() [u'family_name', u'name', u'picture', u'locale', u'gender', u'birthday', u'link', u'given_name', u'id']

Since email is not available, data['email'] raises KeyError

invisibleroads commented 11 years ago

Using velruse.google.scope = 'opend' also raises the same KeyError.

mmerickel commented 11 years ago

whoops, if we're letting those be optional then I guess that'll have to be updated