talira

Flexible authentication solution for Rails with Warden

open sourceMITself-hostablefree

Devise is a complete sign-in system for Rails, built as a Rails engine on Warden: models, controllers, views, routes and mailers you can override. It's split into 10 modules you turn on per model: database authentication with hashed passwords, OmniAuth sign-in, email confirmation, password recovery, sign-up and account editing, remember-me cookies, sign-in tracking, session timeouts, email and password validation, and account locking after failed attempts. Several models can be signed in at once (users and admins), and extension gems listed on its wiki add more, such as invitations and one-time codes.

Problems it solves

  • add sign up, log in and password reset to my Rails app
  • lock an account after too many wrong passwords
  • send a confirmation email before a new account can sign in
  • sign users out automatically after 30 minutes of inactivity
  • admins and customers need separate logins in the same Rails app
  • remember me checkbox that keeps people signed in
  • add Google and GitHub sign-in next to email and password
  • authentication I don't have to write and get wrong myself
  • track when and from which IP each user last signed in

Features

  • Database Authenticatable
  • Omniauthable
  • Confirmable
  • Recoverable
  • Registerable
  • Rememberable
  • Trackable
  • Timeoutable
  • Validatable
  • Lockable
View 4 more
  • several signed-in models at once
  • overridable views, controllers and routes
  • test helpers
  • I18n

Capabilities

Takes pluginsplan not known

Alternatives

The same job

These do what Devise does.

  1. Auth0 Hosted authentication and authorization for apps (an Okta product)
  2. Clerk Drop-in authentication and user management with prebuilt UI components

Compare Devise with the top 3