开发者

Twitter Auth with Django

开发者 https://www.devze.com 2023-03-28 03:12 出处:网络
What is the best twitter auth plugin for Django. I do not understand why django-social-auth and django socialregistration suck so badly, but authentication to both facebook + twitter is not that hard

What is the best twitter auth plugin for Django. I do not understand why django-social-auth and django socialregistration suck so badly, but authentication to both facebook + twitter is not that hard and there seems to be no good django packages for either.

Please prove me开发者_运维问答 wrong.

Thanks


I've attempted using allauth, but haven't gotten it to work.

This post lead me to it: http://hackerluddite.wordpress.com/2011/05/17/review-of-4-django-social-auth-apps/

Let us know what you find that works.


I've also tested django-social-auth and django-socialregistration and they sucked. Things like easily fixed AttributeErrors caused by the software not being kept up to date with the latest Django. They also build upon the model that you authenticate with any of the social auth provider, but you still have to create a new account to login.

Then I tried Janrain and it is the best thing since sliced bread. You can either use it standalone because it is not so hard to integrate its javascript and json api yourself from scratch. Or use django-rpx-plus (RPX is the old name for Janrain) that provides some views and data structures to make integration even easier.

Using Janrain, it is easy to just let your users click on the google/twitter/facebook icon, click accept on the providers page shown in a popup and voila! logged in! The only downsides are the Janrain branding shown in the free version and that you have to rely on a third party for authentication.

0

精彩评论

暂无评论...
验证码 换一张
取 消