I have started to use python-social-auth in a django project to authenticate the users from facebook, email, and potentially other sources. I was able to integrate it to my project, and to create new users with both facebook and email. I understand the concept of pipeline but something remains unclear to me:
How to differentiate login and signup? It seems to me that python-social-auth has a single pipeline for both login and signup actions.
I have implemented a signup and login (with email) template but for now, both submit the form to the url '/complete/email/'.
My loggin form only sends an email and a password but this creates a new user if the email does not allready exist.
How would you differentiate both use cases? Should I use the python-social-auth pipeline only for signup and implement a login view for my "log in with email" page as I would do if I were not using python-social-auth?
Thanks for any answer, experiences on how you did it or further explanation about python-social-auth concepts.
is_newflag is passed which will beTrue/Falseto signal a new user or one that already exists in your application. Also you can defineSOCIAL_AUTH_NEW_USER_REDIRECT_URLto redirect users that location after signup, alsoSOCIAL_AUTH_NEW_ASSOCIATION_REDIRECT_URLdoes the same for users associating a new social account (but were already part of your system). - omablogin formto'/complete/email'with fieldsemailandpasswordand thesignupformto'/complete/email'with fieldsemail,passwordandusername, since the username i required. My problem is that thelogin formis creating new users. - overlii