django-socialregistration or django-SocialAuth?
For my new project, I'm thinking of having signups only through Facebook (and possibly Twitter). Don't care about OpenID, hence this question doesn't answer my concern: What's the best solution for OpenID with Django?
Both these apps seem appropriate, but what's the experience been like with anyone who has used these? Which one has more activity behind it?
The best approach is to implement both -- e.g., username and password and social auth -- and let the user choose. Django Allauth and Python Social Auth are the two most popular packages for implementing social authentication in Django. Which one should you use?
SITE_ID, which is required for Django Allauth to function. ACCOUNT_EMAIL_VERIFICATION = "none" turns off verification emails. Django automatically sets up an email verification workflow. We do not need this functionality right now. LOGIN_REDIRECT_URL = "home" redirects the user to the homepage after a successful login.
Python Social Auth provides support for several Python web frameworks like Django, Flask, Webpy, Pyramid, and Tornado. It supports almost 50 OAuth providers. It supports the Django ORM and MongoEngine ODM It provides a storage interface to allow users to add more ORMs.
Django Allauth is one of the most popular Django packages. It supports over 50 authentication providers (i.e., GitHub, Twitter, Google). Along with social auth, it also provides regular auth with username and password. Django Allauth makes it easy to customize the forms used during the auth flow.
I picked django-socialregistration on a whim and got some help from flashingpumpkin in #django about the latest version (there's a recent version on github now).
I installed it yesterday in our django app and got integration with Twitter working without too much trouble. I couldn't try out Facebook because developer.facebook.com was having hiccups and couldn't give me my keys.
So far it looks good and simple enough but I'm not sure yet if it'll have the features beyond social registration that we're looking for, but judging from the code that may not be too hard to add.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With