[Django]-Any reason why Ruby on Rails doesn't have a standard user authenticated system built in?

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.

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.

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.

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! 🙂

Leave a comment