GithubHelp home page GithubHelp logo

Comments (14)

omab avatar omab commented on June 17, 2024

@Vargi, move associate_by_email above create_user.

from python-social-auth.

dulacp avatar dulacp commented on June 17, 2024

This solve the exact same issue for me, thanks @omab !

from python-social-auth.

dulacp avatar dulacp commented on June 17, 2024

Btw, do not move the associate_user above the create_user, like said before, only associate_by_email.

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',
    'social.pipeline.social_auth.associate_by_email',
    'social.pipeline.user.create_user',
    'social.pipeline.social_auth.associate_user',
    'social.pipeline.social_auth.load_extra_data',
    'social.pipeline.user.user_details'
)

from python-social-auth.

aroraprince avatar aroraprince commented on June 17, 2024

Will this method work if I have a user registered on my webiste manually( i.e not using python- social-auth) using simple forms , and then he tries to register using some social login using same email address.

from python-social-auth.

omab avatar omab commented on June 17, 2024

@aroraprince, yes, that will work if the user has the same email address.

from python-social-auth.

aroraprince avatar aroraprince commented on June 17, 2024

@omab I am using the following pipeline:

DEFAULT_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.social_auth.associate_by_email',
'social.pipeline.user.get_username',
'social.pipeline.user.create_user',
'social.pipeline.social_auth.associate_user',
'social.pipeline.social_auth.load_extra_data',
'social.pipeline.user.user_details'
)

but it does not seem to work in the above scenario.A new user gets registered when I try to register using OAuth.

from python-social-auth.

omab avatar omab commented on June 17, 2024

@aroraprince, which OAuth backend? Is email being sent by that backend?

from python-social-auth.

aroraprince avatar aroraprince commented on June 17, 2024

@omab I have tried using gmail.
My gmail email id was already in the users table but still a new user was created when tried using social-auth.

from python-social-auth.

omab avatar omab commented on June 17, 2024

Are you testing with a clean db?

from python-social-auth.

aroraprince avatar aroraprince commented on June 17, 2024

@omab Yes, I think there isn't any problem

from python-social-auth.

omab avatar omab commented on June 17, 2024

@aroraprince, not sure if I follow, it's working fine now?

from python-social-auth.

aroraprince avatar aroraprince commented on June 17, 2024

Yes, I think there isn't any problem with the database

from python-social-auth.

omab avatar omab commented on June 17, 2024

I was asking about the DB because sometimes users left the account created by python-social-auth in place, so second attempts are actually getting that account again.

from python-social-auth.

aroraprince avatar aroraprince commented on June 17, 2024

@omab I tried logging in using OAuth after manually registering myself.

from python-social-auth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.