Ruby Authorization

Open-source Ruby projects categorized as Authorization

Missing quite a few other open source projects in this space like SuperTokens (https://supertokens.com) and Keycloak.

Top 23 Ruby Authorization Projects

Authorization
  1. Pundit

    Minimal authorization through OO design and pure Ruby classes

    Project mention: Pundit-ts: type-safe authorization library for Node.js | news.ycombinator.com | 2025-02-08
  2. Judoscale

    Save 47% on cloud hosting with autoscaling that just works. Judoscale integrates with Rails, Sidekiq, Solid Queue, and more to make autoscaling easy and reliable. Save big, and say goodbye to request timeouts and backed-up job queues.

    Judoscale logo
  3. CanCanCan

    The authorization Gem for Ruby on Rails.

    Project mention: Rails and Keycloak, Authentication Authorization, part one | dev.to | 2024-08-16

    CanCanCan.

  4. Doorkeeper

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

    Project mention: Rails and Keycloak, Authentication Authorization, part one | dev.to | 2024-08-16

    You can use doorkeeper gem. Which can convert your Rails application into an identity provider. But this means that one of your applications will be the single source of truth for users management.

  5. rolify

    Role management library with resource scoping

  6. Action Policy

    Authorization framework for Ruby/Rails applications

    Project mention: Securing Rails application with Action Policy | dev.to | 2024-09-21

    # app/controllers/admin/application_controller.rb class Admin::ApplicationController < ActionController::Base before_action :authenticate_user! before_action :authorize! verify_authorized layout "admin/application" def implicit_authorization_target # If you don't pass the target, it will be guessed # based on the controller name. # See https://actionpolicy.evilmartians.io/#/implicit_target super || controller_name.classify.to_sym end def authorization_strict_namespace true end end

  7. Declarative Authorization

    An unmaintained authorization plugin for Rails. Please fork to support current versions of Rails

  8. acl9

    Yet another role-based authorization system for Rails

  9. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
  10. AccessGranted

    Multi-role and whitelist based authorization gem for Rails (and not only Rails!)

  11. Next Rails

    A toolkit to upgrade your next Rails application

  12. graphql-guard

    Simple authorization gem for GraphQL :lock:

  13. Consul

    Scope-based authorization for Ruby on Rails. (by makandra)

  14. RoleCore

    🔐A Rails engine providing essential industry of Role-based access control.

  15. banken

    Simple and lightweight authorization library for Rails

  16. Pundit Matchers

    A set of RSpec matchers for testing Pundit authorisation policies.

  17. Groupify

    Add group and membership functionality to your Rails models

  18. RedisWebManager

    Manage your Redis instance (see keys, memory used, connected client, etc...)

  19. Canard

    Makes role based authorization in Rails really simple. Wraps CanCan and RoleModel up with a smattering of syntactic sugar, some generators and scopes.

  20. rabarber

    Rabarber is a role-based authorization library for Ruby on Rails. It provides a set of tools for managing user roles and defining authorization rules, supports multi-tenancy and comes with audit logging for enhanced security.

    Project mention: Securing Rails application with Action Policy | dev.to | 2024-09-21

    I found 2 really good gems for this, ActionPolicy and Rabarber. ActionPolicy allowed me to write policies, and in those policies I will then decide if the user has a certain role before they can perform a given action.

  21. Yabeda::Puma::Plugin

    Collects Puma web-server metrics from puma control panel

  22. verifica

    Verifica is Ruby's most scalable authorization solution

  23. browserslist_useragent gem

  24. Operators

    Service Object based on Either Monad

  25. KittyPolicy

    Kitty Policy Ruby Authorization Gem

  26. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Ruby Authorization discussion

Log in or Post with

Ruby Authorization related posts

  • Pundit-ts: type-safe authorization library for Node.js

    3 projects | news.ycombinator.com | 8 Feb 2025
  • Securing Rails application with Action Policy

    2 projects | dev.to | 21 Sep 2024
  • Rails and Keycloak, Authentication Authorization, part one

    7 projects | dev.to | 16 Aug 2024
  • An Introduction to Auth0 for Ruby on Rails

    2 projects | dev.to | 31 Jul 2024
  • Rabarber v3: Multi-Tenancy Update

    1 project | dev.to | 30 Jul 2024
  • Rabarber v2: A Major Update for the Role-Based Authorization Gem

    1 project | dev.to | 29 Apr 2024
  • A guide to Auth & Access Control in web apps 🔐

    8 projects | dev.to | 7 Nov 2023
  • A note from our sponsor - Judoscale
    judoscale.com | 26 Apr 2025
    Judoscale integrates with Rails, Sidekiq, Solid Queue, and more to make autoscaling easy and reliable. Save big, and say goodbye to request timeouts and backed-up job queues. Learn more →

Index

What are some of the best open-source Authorization projects in Ruby? This list will help you:

# Project Stars
1 Pundit 8,382
2 CanCanCan 5,633
3 Doorkeeper 5,381
4 rolify 3,172
5 Action Policy 1,457
6 Declarative Authorization 1,243
7 acl9 852
8 AccessGranted 778
9 Next Rails 533
10 graphql-guard 470
11 Consul 334
12 RoleCore 302
13 banken 269
14 Pundit Matchers 238
15 Groupify 194
16 RedisWebManager 172
17 Canard 125
18 rabarber 104
19 Yabeda::Puma::Plugin 72
20 verifica 61
21 browserslist_useragent gem 29
22 Operators 27
23 KittyPolicy 23

Sponsored
Save 47% on cloud hosting with autoscaling that just works
Judoscale integrates with Rails, Sidekiq, Solid Queue, and more to make autoscaling easy and reliable. Save big, and say goodbye to request timeouts and backed-up job queues.
judoscale.com

Did you know that Ruby is
the 12th most popular programming language
based on number of references?