I'm trying to integrate Social Auth to my Webapp. As I have to store a lot of additional information for each User I had two choices:
A) Create a UserProfile with a OneToOne Relationship to User
B) Overwrite the default User class by inhereting from Abstract User
Currently I chose to go with B) as was also recommended. Now I have found three Addons that seem to be popular:
- django-registration-redux
- django social-auth
- django-allauth
I found some tutorial for all three of those (can post links to them if anyone wants) however, all tutorial just make use a regular user model. I have not been able to find a solution / example on how to connect to a custom UserProfile for example. I have tested django-allauth using my overwritten User Model and I was able to log in using Facebook, however I have no idea how to automatically include my custom properties in a sign-up form (as there is essentially no sign up, just log in via facebook).
What I'd like to do is the following:
- Allow users to register at my site
- During registration not only ask for username, email and password but additional required fields like language settings (so extend default form)
- Allow Sign-Up / Login through OAuth (Facebook and Google at least) but still have the user fill out those required fields.
Can someone please tell me which 3rd Party App to use and maybe point me to a tutorial / example that adds additional user properties during registration?