News for hackers. Stuff that matters.
Re:Introducing Anonymous Login and an Updated Facebook Login by yeukhon on Wednesday April 30, 2014 @05:45PM (#7676677)
What you say is not always true either.

I do Python mostly. Django? Fine. It has an excellent auth system out of the box. But that kind of auth system isn't very flexible either. Now I barely do Django development today so please excuse me behind any insane changes.

Flask and Pyramid world? Custom auth to me. They both have community modules for auth stuff, but do I really like them? I am not the kind of guy just pip install random "useful" package these days. Let's give another example. A year or two ago I tried to do social auth in some of my django and flask apps. Maybe I was dumb but using that social-auth library took me a while to get some of login working. Plus, the code was messy and buggy. In the end, I said screw that and implemented all of the custom login myself, just reading the official doc from twitter and facebook. That also took me a while but I knew the whole implementation inside-out. If I don't trust my own implement because it is insecure, then I must spend the same amount of time inspecting other people's custom modules.

The truth is, generic auth system is hard and is not flexible. In fact, too flexible can be a bad thing: http://plope.com/pyramid_auth_design_api_postmortem

I like customized auth system based on the api provided by the framework - that' what makes Pyramid powerful to me. Sometimes your community auth module can have limitation that you probably have to hack around.

Re:Introducing Anonymous Login and an Updated Facebook Login by Goopplesoft on Wednesday April 30, 2014 @08:04PM (#7677328)
What kind of customization were you trying to do in Django that you couldn't? I know you can one-to-one models that extend the backend, you can customize the backend, chose custom templates for the login forms, create your own forms, etc. And the docs seem to indicate this was possible since 1.5: https://docs.djangoproject.com/en/1.5/topics/auth/customizin...
Re:Introducing Anonymous Login and an Updated Facebook Login by dangayle on Wednesday April 30, 2014 @07:56PM (#7677293)
Django did update their auth app, it's very flexible now
Re:Introducing Anonymous Login and an Updated Facebook Login by encoderer on Wednesday April 30, 2014 @10:06PM (#7677794)
Until you want Ajax login. Then you write boilerplate for two hours. If there was a really good ajax reg/login module for Django, I'd gladly pay $10 for it the way I do bootstrap themes.
Re:Introducing Anonymous Login and an Updated Facebook Login by dangayle on Thursday May 01, 2014 @02:24AM (#7678547)
Hmm. Hadn't thought about that. Good point.