On Tue, Jul 21, 2015 at 9:20 PM, Matías Aguirre <
matias...@gmail.com> wrote:
> How you get the users is up to you and your project and automated
> procedure, my code was just an example. Basically what you need is:
>
> 1. Get a User instance
> 2. Get the associated social account
> 3. Get email from user
> 4. Get access_token from social account
I tried with all my head but could not understand what actually I need to get,
Do I need to creat Custom user model first (But I guess not, because I
just need Email and Acees token and PSA is already providing me that)
Can you give me any code example to play with at Django shell
?(including the libraries I need to import)
Here is default pipeline:
SOCIAL_AUTH_PIPELINE = (
'social.pipeline.social_auth.social_details',
'social.pipeline.social_auth.social_uid',
'social.pipeline.social_auth.auth_allowed',
'social.pipeline.social_auth.social_user',
'social.pipeline.user.get_username',
'example.app.pipeline.require_email',
'social.pipeline.mail.mail_validation',
'social.pipeline.user.create_user',
'social.pipeline.social_auth.associate_user',
'social.pipeline.debug.debug',
'social.pipeline.social_auth.load_extra_data',
'social.pipeline.user.user_details',
'social.pipeline.debug.debug'
)
If in the last line social.pipeline.user.user_details which is
supposed to return user_details Can't get Email and access token from
that?
Thanks,