1. offline
  2. django-publicauth

Source

django-publicauth / publicauth / backends / google.py

Diff from to

File publicauth/backends/google.py

     def get_extra_data(self, resp):
         return FetchResponse.fromSuccessResponse(resp)
 
-    def extract_data(self, extra, field):
-        try:
-            return {self.PROFILE_MAPPING[field][0]: extra.getSingle(settings.AX_URIS[field], '')}
-        except:
-            return {self.PROFILE_MAPPING[field][0]: ''}
+    def extract_data(self, extra, backend_field, form_field):
+        return {form_field: extra.getSingle(settings.AX_URIS[backend_field], '')}