...

/

When in Doubt, Use Devise or OmniAuth

When in Doubt, Use Devise or OmniAuth

Learn how and when we should use Devise or OmniAuth for our Rails application.

We'll cover the following...

Overview

One of the most common cross-cutting concerns in any app is the need to authenticate users and authorize the actions they may take in an app. Rails does not include any facility for managing this because the way authentication is handled is far less common than, say, the way code accesses a database.

This gap requires that we do some upfront thinking and design for how we want to handle this important part of our app. For authentication, there are two common gems that handle the most common cases, and we’ll talk about which situations are ...