bbangert / velruse

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

is it better not to extract resp from proivder in callback()? #138

Open chungwong opened 10 years ago

chungwong commented 10 years ago

currently all callback functions for all providers are extracting different info from the response returned by providers.

For example, facebook.py extracts timezone,gender and birthday and append them into profile while tiwtter extract some different, extra data like addresses.

I am not sure how to override the callback function on the fly to extract additional data from the response to the profile variable as they are hard coded before the view get the profile.

Is it better just return the raw response to the view by context? That way the view can do whatever it wants to the response rather than a harde coded profile with limited and inconsistent data?

Thanks