Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which solution is better for Django social authentication?

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?

like image 529
828 Avatar asked Jul 22 '10 05:07

828


People also ask

How do I implement social authentication in Django?

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?

What is the use of account_email_verification in Django?

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.

What is the use of @Python social Auth?

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.

What is allauth in Django?

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.


1 Answers

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.

like image 118
Alper Avatar answered Nov 10 '22 01:11

Alper