User Authentication in Merb

Every application has users, and typically, one wants to restrict access to registered users. That means writing code for user authentication. Or does it? Merb comes with the merb-auth gem baked in. When you generate an application with the default merb stack, merb-auth is already set up for typical usage.

Here’s information about using merb-auth:

As an alternative to merb-auth, there’s the Ruby Authlogic gem from Ben Johnson which is an interesting implementation that works with Rails or Merb. For now, I’m just going to look at merb-auth.

Leave a Reply