5
There is no reasonably generic way to do user authentication. Most frameworks leave it up to you to choose the plugin that most closely matches what you’re trying to accomplish.
For example, consider these two situations:
- a blog which has a single administrator with password-protected admin-facing tools
- a site like YouTube which allows users to sign up and administer their own content
Both of these sites would require vastly different authentication systems; which of these systems should Rails cater to out-of-the-box?
3
The Rails core team wanted to ensure that Rails was open-ended enough to make anything you want. There is no one-size-fits-all authentication scheme, so the core team decided to leave it out. Rails is easily extendable via gems and plugins, so that is where they belong.
Some examples are Warden and the Rails Warden plugin, Devise, Authlogic, and Restful Authentication.
- [Django]-Problem rendering a Django form field with different representation
- [Django]-Python / Django | How to store sent emails?
- [Django]-Use Django's models in a Scrapy project (in the pipeline)
- [Django]-Prevent emails from Python from being flagged as spam
- [Django]-Django using curry to build formsets with custom form
1
CakePHP has a built in Authentication component that is pretty straight forward and easy to implement.
0
Most of these frameworks you mentioned are toolkits, not complete products. You build these things yourself, or leverage plugins from the community. Django’s admin plugin/module has authentication out of the box though. Drupal does too, as a matter of fact.
- [Django]-How to translate labels and validation messages of forms within Django
- [Django]-How to have nested url namespaces with a dynamic first part in Django
0
Authentication can be(and is in my opinion) a matter of taste and need. If Rails was including things like that, it would start to become a website and not a framework. The programmer has to be free to choose among various implementations. That is why gems are available.
- [Django]-Django 1.7 and smart, deep, filtered aggregations
- [Django]-Best practice to serve static files in Django
- [Django]-OSError: [Errno 30] Read-only file system in Django on Heroku
- [Django]-Django – Is there a way to find the maximum/minimum value of a field from models without using an iterator?
- [Django]-How to implement countdown timer in django
0
I’ve been programming a little in Rails and CakePHP, and I can say that Rails doesn’t need to provide a mechanism like this. The community is very very good, and there are many examples (already said, like Devise, Authlogic…) made by very good programmers. Of course, there are many tutorials online (and also, railscasts, which are simply awesome) to program a succesful set-up for your project. So, if we have all of this, why should we need something like cakePHP mechanism? It’s OK, it works, but there’s just a very good tutorial and that’s all( and maybe enough..). So, in the end, if u have a nice community you shouldn’t care about the core of the technology, there will be always someone else more experienced with your needs that will do it for you. And if you don’t find it, do it by yourself and in the proccess you will find a lot of help!
- [Django]-Django MEDIA_URL returns http instead of https
- [Django]-Docker error using python 3.7: Generator expression must be parenthesized
- [Django]-Django-CMS AppHooks with conflicting urls?
- [Django]-Django Serializer returns JSON for parent class objects only and leave child objects as same?