Skip to content
OpenSourceSoftware.ai
Devise logo

Devise

heartcombo · Authentication libraries

What is Devise?

Devise is a code library for adding user accounts to Ruby on Rails apps, not an app you run on its own. Originally from Plataformatec, it is now maintained under the heartcombo organisation. You choose from 10 modules and add only the ones your app needs.

Devise is a flexible authentication solution for Ruby on Rails, built on Warden. It is made up of 10 modules covering password sign-in, registration, email confirmation, password recovery, session timeouts and account locking, and you use only the ones you need.

Core capabilities

  • 10 modules you switch on one at a time, from password sign-in to account lockout.
  • A complete MVC solution for Rails, based on Rails engines.
  • OmniAuth support for signing in with third-party accounts.

The 10 modules

Database Authenticatable handles passwords and Omniauthable adds third-party sign-in. Confirmable, Recoverable and Registerable cover email confirmation, password resets and sign-up. Rememberable, Trackable, Timeoutable, Validatable and Lockable cover remember-me cookies, sign-in tracking, idle sessions, email and password checks and account locking.

  • Modules
  • Passwords
  • OmniAuth

How it fits into Rails

Devise is Rack based and works as a complete MVC solution through Rails engines. Several models can be signed in at the same time, and the README covers Rails API mode, custom views and controllers, and test helpers.

  • Rails
  • Warden
  • Rack

Licence and releases

Devise is under the MIT licence. It is a Ruby gem, so there is nothing to host separately. Version 5.0.4 was released in May 2026.

  • MIT
  • Ruby gem

Where it fits

Use cases

  1. 01

    Add user accounts to a Rails app

    Add the gem and turn on the modules you need, such as registration, password sign-in and remember-me cookies.

  2. 02

    Handle password resets and confirmations

    The Recoverable module sends password reset instructions, and Confirmable verifies by email that an account is confirmed before sign-in.

  3. 03

    Protect accounts from password guessing

    Lockable locks an account after a set number of failed sign-ins, and Timeoutable ends sessions that have been idle for a set time.