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: How much of your codebase should AI write? A trust-zone breakdown | dev.to | 2026-06-12

    Auth boundaries. Who can do what. The rules that decide whether a logged-in user is allowed to see another user's records, edit their settings, charge their card. In a Rails app these usually live in a small set of rule files (a library like Pundit is the common choice) plus the login layer. This is the single most crucial security concern of an application to get right. The simplest check is to log in as two different users and try to access each other's URLs; if that works, you have a hole. The rules are the answer to "who is allowed to do what here," and that answer names the system's verbs - the actions a system is able to perform.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. CanCanCan

    The authorization Gem for Ruby on Rails.

    Project mention: Rails Authorization Beyond Models: Securing Dashboards and Service Controllers with CanCanCan | dev.to | 2026-02-06

    Authorization, which decides what they can do, is where the mess begins. Most of us start with CanCanCan basics: you add load_and_authorize_resource to a PostsController, and magic happens. Admins edit, users read. Life is good.

  4. Doorkeeper

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

  5. RubyLLM

    One delightful Ruby framework for every major AI provider. Build AI agents, chatbots, RAG apps, and multimodal workflows in beautiful, expressive code.

    Project mention: RubyLLM: A single, beautiful Ruby framework for all major AI providers | news.ycombinator.com | 2026-06-24

    Thank you!

    Since a few mentioned Responses API: the reason why it wasn't implemented in 1.x is because RubyLLM 1.x effectively assumes a 1:1 mapping between provider and protocol. That assumption no longer holds since OpenAI has 2 protocols with different capabilities, and to access all VertexAI models we need to support a bunch under that single provider.

    Therefore, a major refactoring to split Protocols and from Providers was needed, as well as a way to route different models to different Protocols under the same Provider, transparently.

    That's one of the many things that's gonna ship with RubyLLM 2.0.

    If you're curious: https://github.com/crmne/ruby_llm/commit/d398354da493570b050...

  6. rolify

    Role management library with resource scoping

  7. OAuth2

    πŸ” oauth2 - A Ruby wrapper for the OAuth 2.0, & 2.1 Authorization Frameworks, including OpenID Connect (OIDC) (by ruby-oauth)

    Project mention: πŸ’ŽREL: oauth2 v2.0.18 | dev.to | 2026-03-31

    oauth2 v2.0.18 was released... almost five months ago. And I never got around to posting about it. Being unemployed is a LOT of work...

  8. Action Policy

    Authorization framework for Ruby/Rails applications

  9. Declarative Authorization

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

  10. acl9

    Yet another role-based authorization system for Rails

  11. AccessGranted

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

  12. Next Rails

    A toolkit to upgrade your next Rails application

  13. graphql-guard

    Simple authorization gem for GraphQL :lock:

  14. Consul

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

  15. RoleCore

    πŸ”A Rails engine providing essential industry of Role-based access control.

  16. banken

    Simple and lightweight authorization library for Rails

  17. Pundit Matchers

    A set of RSpec matchers for testing Pundit authorisation policies.

  18. Groupify

    Add group and membership functionality to your Rails models

  19. 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, with support for multi-tenancy and fine-grained access control.

  20. RedisWebManager

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

  21. Canard

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

  22. Yabeda::Puma::Plugin

    Collects Puma web-server metrics from puma control panel

  23. islandjs-rails

    IslandJS Rails supports the development of React (or other JS library) islands in Rails (7+) apps

    Project mention: Praxis-Emergent/Islandjs-Rails | news.ycombinator.com | 2025-08-07
  24. verifica

    Verifica is Ruby's most scalable authorization solution

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

  • RubyLLM: A single, beautiful Ruby framework for all major AI providers

    7 projects | news.ycombinator.com | 24 Jun 2026
  • RubyLLM 1.16: concurrent tool execution, Rails-style instrumentation, and more

    1 project | news.ycombinator.com | 9 Jun 2026
  • πŸ‡§πŸ‡· Glancer β€” Converse com seu banco de dados Rails em linguagem natural

    3 projects | dev.to | 27 May 2026
  • How to implement AI agents in Rails with RubyLLM

    2 projects | dev.to | 24 Apr 2026
  • πŸ’ŽREL: oauth2 v2.0.18

    1 project | dev.to | 31 Mar 2026
  • Rails Authorization Beyond Models: Securing Dashboards and Service Controllers with CanCanCan

    1 project | dev.to | 6 Feb 2026
  • Praxis-Emergent/Islandjs-Rails

    1 project | news.ycombinator.com | 7 Aug 2025
  • A note from our sponsor - SaaSHub
    www.saashub.com | 12 Jul 2026
    SaaSHub helps you find the best software and product alternatives 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,514
2 CanCanCan 5,669
3 Doorkeeper 5,510
4 RubyLLM 4,235
5 rolify 3,178
6 OAuth2 2,179
7 Action Policy 1,560
8 Declarative Authorization 1,236
9 acl9 850
10 AccessGranted 778
11 Next Rails 577
12 graphql-guard 466
13 Consul 334
14 RoleCore 301
15 banken 269
16 Pundit Matchers 248
17 Groupify 196
18 rabarber 191
19 RedisWebManager 170
20 Canard 124
21 Yabeda::Puma::Plugin 83
22 islandjs-rails 82
23 verifica 60

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

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