# Devise

> Flexible authentication solution for Rails with Warden

Source: https://talira.ai/catalog/devise-n63ctza6
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Framework
- Categories: [security / auth / libraries](https://talira.ai/categories/security/auth/libraries), [languages / ruby / rails](https://talira.ai/categories/languages/ruby/rails)
- Platforms: linux, macos, windows
- Licence: MIT
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Plugins: yes
- Backed by: [heartcombo](https://talira.ai/orgs/heartcombo.md)

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](https://talira.ai/catalog/omniauth-31vsk2q1.md) 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.

## Links

- GitHub: https://github.com/heartcombo/devise
- Docs: https://github.com/heartcombo/devise/wiki

## 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
- several signed-in models at once
- overridable views, controllers and routes
- test helpers
- I18n

## Capabilities

- Takes plugins: plan not known

## Trust

Overall: 0.57 out of 1.
Signals: maintenance 0.49, adoption 0.88, momentum 0.63, community 1.00, backing 0.30, extensibility 0.20.

- last commit 48 days ago
- 6 commits in the last 90 days
- latest release v5.0.4 6 months ago
- 24.3k GitHub stars
- 723 contributors
- backed by heartcombo
- has a plugin system

## Alternatives

- [Auth0](https://talira.ai/catalog/auth0-zph5jvgk.md): Hosted authentication and authorization for apps (an Okta product)
- [Clerk](https://talira.ai/catalog/clerk-pz0cjz27.md): Drop-in authentication and user management with prebuilt UI components
