Closed diegoponciano closed 8 years ago
If you need to get the email from facebook,
you'll need to add SOCIAL_AUTH_FACEBOOK_SCOPE = ['email']
in your settings to get the email as an additionnal information from facebook.
Normally, python-social-auth will take care of filling your user's email with it automatically.
If you want to associate users by email you'll need to add 'social.pipeline.social_auth.associate_by_email'
to your SOCIAL_AUTH_PIPELINE
.
I'm closing this, feel free to reopen if you need more informations.
@PhilipGarnero can you provide corrct setting for SOCAIL_AUTH_PIPELINE?
after adding
SOCIAL_AUTH_PIPELINE = (
'social.pipeline.social_auth.associate_by_email'
)
I get
TypeError at /api/auth/convert-token/
argument of type 'NoneType' is not iterable
SOCIAL_AUTH_PIPELINE
is a tuple already defined with python-social-auth. You must copy the default value and insert 'social.pipeline.social_auth.associate_by_email'
in the list.
I followed the guide to configure Facebook auth, but as I tried to convert an external token using curl, I noticed only username is being sent on kwargs (and email is required in my model).
Possibly relevant stacktrace: