Authlogic : Simple & smart Rails authentication(wiki.github.com)
wiki.github.com
Authlogic : Simple & smart Rails authentication
http://wiki.github.com/binarylogic/authlogic
8 comments
We switched to authlogic for our newest project. We even have a Rails project template that generates everything needed for authlogic (including mailer). If you're interested, check out the template here: https://svn.cubus.ro/svn/trunk/cubus-utils/rails/templates/c... . Feedback is welcome.
Have you considered using git? I really prefer it these days over svn.
This looks really interesting. I've been building a Rails app with Restful Authentication, and while it's a lot better than writing everything myself, it's pretty kludgy in a lot of ways, the most obvious of which is that the whole thing is a big generator. Which means that, as near as I can tell, once you've written your application with Restful Authentication, there's no easy way to upgrade your application to later versions of Restful Authentication.
restful_auth is actually a bit of a hybrid. So, there are some shared libraries that do a lot of the heavy lifting, and then a bunch (too much?) generated code that gets put into your project directly.
Lately, I've found myself pulling the restful_auth plugin out of my app and seeing what breaks. Then, I'll grab the stuff that's necessary and put it into my lib directory. This helped me figure out exactly what was going on and why. Finally, I trimmed out the stuff that I didn't want. I feel better about knowing what's going on that way, because it is a bit confusing.
I'd certainly say neither solution is perfect, but I still prefer restful_auth approach because it seems more... I don't know... straightforward? Still, the situation could stand for further improvement :)
Lately, I've found myself pulling the restful_auth plugin out of my app and seeing what breaks. Then, I'll grab the stuff that's necessary and put it into my lib directory. This helped me figure out exactly what was going on and why. Finally, I trimmed out the stuff that I didn't want. I feel better about knowing what's going on that way, because it is a bit confusing.
I'd certainly say neither solution is perfect, but I still prefer restful_auth approach because it seems more... I don't know... straightforward? Still, the situation could stand for further improvement :)
Here are some really helpful tutorials from the author: http://www.binarylogic.com/authlogic
What really made me decide to drop Authlogic was when I realized it was silently adding validations to my model. I had to dig into the source to find the documentation about that, which really turned me off.
I'm glad people are finding it useful, and I think it's a worthwhile project. I just found that it wasn't my cup of tea. So, I'd encourage people to take some extra time to play with it in a branch before really committing to it. You might consider using the options to make it act like restful_authentication in case you decide to make a change later.