Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Gems
  3. Clearance

Clearance

MITRubyv2.12.0

A small, simple, and well-tested Rails authentication engine for email and password authentication.

Visit WebsiteGitHubGitHub
3.7k stars464 forks0 contributors

What is Clearance?

Clearance is a Rails authentication engine that provides a complete, opinionated system for handling user authentication with email and password. It solves the common need for a secure, customizable authentication layer in Rails applications without requiring developers to build it from scratch. It includes features like user registration, login, password resets, and session management out of the box.

Target Audience

Rails developers who need a straightforward, well-tested authentication solution for their applications without the complexity of larger frameworks. It's ideal for projects where email/password authentication is sufficient and customization is important.

Value Proposition

Developers choose Clearance for its simplicity, ease of integration, and strong testability. Unlike more monolithic authentication solutions, it's lightweight, follows Rails conventions, and offers fine-grained control over controllers, views, and authentication logic through overrides and the SignInGuard stack.

Overview

Rails authentication with email & password.

Use Cases

Best For

  • Adding email/password authentication to a new Rails application quickly
  • Projects that need a customizable authentication system without external dependencies
  • Teams that prefer convention over configuration but want escape hatches for customization
  • Applications requiring fine-grained access control via routing constraints
  • Testing authentication flows efficiently with built-in helpers and backdoor middleware
  • Extending sign-in logic with custom guards (e.g., email confirmation, user suspension)

Not Ideal For

  • Projects requiring OAuth or social login integrations without additional gems
  • Applications needing built-in multi-factor authentication or advanced security features
  • Teams wanting a fully pre-styled, drop-in authentication UI with no CSS work
  • Non-Rails frameworks, as it's tightly coupled to Ruby on Rails

Pros & Cons

Pros

Easy Rails Integration

As a Rails engine, it can be added with a generator that sets up models, controllers, and migrations, reducing initial setup time and following Rails conventions.

Highly Customizable

All controllers, views, and routes can be subclassed or overridden, and the SignInGuard stack allows for extensible middleware, giving developers fine-grained control over authentication flows.

Strong Testing Support

Includes RSpec and TestUnit helpers, backdoor middleware for fast integration tests, and generators for feature specs, making it easy to build and maintain test suites.

Sensible Defaults

Provides opinionated, well-tested defaults for email/password authentication, session management, and routing constraints, while remaining easy to override via configuration.

Cons

Limited Authentication Methods

Out of the box, it only supports email and password authentication, lacking built-in features for OAuth, social logins, or multi-factor authentication, which requires additional development.

Customization Overhead

To modify default views or controllers, developers must subclass or copy files, which can be more involved than using solutions with pre-built, configurable components.

Rails-Only Dependency

As a Rails engine, it's not suitable for applications built on other frameworks, and its tight integration means updates or changes are tied to Rails versions.

Frequently Asked Questions

Quick Stats

Stars3,736
Forks464
Contributors0
Open Issues27
Last commit8 days ago
CreatedSince 2008

Tags

#rails#rack-middleware#testing-helpers#rails-authentication#rails-engine#password-reset#ruby-on-rails#rubygem#ruby#session-management#thoughtbot

Built With

B
Bcrypt
R
Ruby
R
Ruby on Rails
R
Rack

Links & Resources

Website

Included in

Ruby14.1kGems2.8k
Auto-fetched 18 hours ago

Related Projects

DeviseDevise

Flexible authentication solution for Rails with Warden.

Stars24,343
Forks5,480
Last commit1 month ago
devisedevise

Flexible authentication solution for Rails with Warden.

Stars24,343
Forks5,480
Last commit1 month ago
OmniAuthOmniAuth

OmniAuth is a flexible authentication system utilizing Rack middleware.

Stars8,097
Forks975
Last commit4 months ago
doorkeeperdoorkeeper

Doorkeeper is an OAuth 2 provider for Ruby on Rails / Grape.

Stars5,512
Forks1,080
Last commit1 day ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub