5 ms·
Most of what you wrote... most people don't care about. Honestly, I don't care too much about it, and I'm fairly privacy-conscious (I just have a higher thresh
by kelnos 13y ago
Most of what you wrote... most people don't care about. Honestly, I don't care too much about it, and I'm fairly privacy-conscious (I just have a higher threshold for things that I actually care about keeping secret).
Remember, if it was actually anonymous, you wouldn't need Facebook's help to implement it.
People implement FB login for a variety of reasons, but one is that doing proper account management is hard. If you want to implement a non-FB anon login, you basically have to implement a full account management solution yourself, assuming you want the anon account data to be persistent (that is, it's not truly anonymous in the sense that you sign in, do things, sign out, and it's as if you were never there). This basically fixes one of my final issues with FB login, that it's still not clear what data FB will give to the app. If anon login means FB doesn't give anything to the app aside from an opaque ID token, that's pretty cool.
- selmnoo 13y ago> If you want to implement a non-FB anon login, you basically have to implement a full account management solution yourself, assuming you want the anon account data to be persistent (that is, it's not truly anonymous in the sense that you sign in, do things, sign out, and it's as if you were never there) That's just not true. Modern web frameworks come with modules that let one have fairly good account management systems without much work.
- wtvanhest 13y agooff topic: What is a good way for someone who is unfamiliar with account management to evaluate modules and select one? I'd like to setup an account management system and I was planning on doing it manually but figured there had to be a better way.
- ufmace 13y agoGoogle around and pick the most popular one usually works, as least if you're using a more "trendy" framework. For Rails, Devise seems to be the way to go, as it's the most popular by far[0]. It's what I'm using for my project. [0]https://www.ruby-toolbox.com/categories/rails_authentication https://www.ruby-toolbox.com/categories/rails_authentication
- yeukhon 13y agoWhat 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 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.
- dangayle 13y agoDjango did update their auth app, it's very flexible now
- Goopplesoft 13y ago
- threeseed 13y agoThis is simply untrue. Most modern web frameworks do NOT come with fairly good account management systems.
- bertil 13y agoI’m sure what you are saying is right — but I’m not in anyway smarter reading it then reading the one before. You can’t just say ‘No, not true’ on Hacker News. What makes the existing options not “fairly good”?
- y4mi 13y agowell, the burden of proof is on selmnoo, as he made the claim that they are good enough. the default state should always be negative.
- babuskov 13y agoTo make it easier for him (and others who agree with him), here's a simple question. Name the modules (packages, whatever) that implement password-reset functionality in: 1. Python + Django 2. Node.js + whatever 3. PHP + CakePHP/CodeIgniter/Yii I'm not aware of any. By "password-reset" I mean user clicks "Forgot password" and goes through some process like asking a secret question, doing catpcha test, sending a password reset link via e-mail, handling the click on the link, asking for a new password and resetting it. P.S. Pick different frameworks if you wish.
- vertex-four 13y agoIn Django? django.contrib.auth.views.password_reset seems like it would do the job, no? If you have specific logic you need to implement, rather than using the framework's default logic, there's likely not much it can do for you. Alternatively, there appears to be a CBV version of password resets over here that looks fairly easy to extend: https://github.com/brutasse/django-password-reset https://github.com/brutasse/django-password-reset I can't talk for node.js (although I have found that its authn/authz frameworks are lacking in general) or various PHP frameworks, but Django at the least is fairly professional.