Ruby Authentication

Open-source Ruby projects categorized as Authentication

Top 23 Ruby Authentication Projects

Authentication
  1. Devise

    Flexible authentication solution for Rails with Warden.

    Project mention: Rails for Everything | news.ycombinator.com | 2025-01-01

    Acknowledging that I haven't had a chance to try the new Rails 8 auth stack... over the last decade I've gone from being a Devise hater to a Devise lover.

    Yes, it can seem esoteric and magical (in the bad way) until you wrap your head around the idioms and design philosophy. There's a lot of functionality that happens unless you override it. I fully get that this rubs a lot of people who aren't in the pool the wrong way.

    However, in addition to the impressive selection of modular capabilities mentioned elsewhere in this thread, there's a very bright light that goes on when you realize that you can make powerful changes to the way the library works by reopening a few controller classes and defining your own methods.

    My strong advice for anyone looking at Devise and perhaps feeling stumped is to open up https://github.com/heartcombo/devise/tree/main/app/controlle... and spend some tens of minutes looking at how the library does what it does. These controller - especially sessions and registrations - contain all of the business logic driving the "magic". Not only do they reveal themselves as relatively simple and well thought out, all of those yield calls mean that you can call those methods while passing a block to them. Whatever is in that block will be evaluated inside of that method when it runs.

    The people who designed Devise put a lot of thought into this stuff. When you get it, you suddenly don't want to be without it.

  2. Nutrient

    Nutrient – The #1 PDF SDK Library, trusted by 10K+ developers. Other PDF SDKs promise a lot - then break. Laggy scrolling, poor mobile UX, tons of bugs, and lack of support cost you endless frustrations. Nutrient’s SDK handles billion-page workloads - so you don’t have to debug PDFs. Used by ~1 billion end users in more than 150 different countries.

    Nutrient logo
  3. OmniAuth

    OmniAuth is a flexible authentication system utilizing Rack middleware.

    Project mention: How to use gem omniauth and omniauth-oauth2 to implement SSO for multiple customers | dev.to | 2024-11-30

    Your Rails setup does not support dynamically configuring client information as described in other solutions.

  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. Devise Token Auth

    Token based authentication for Rails JSON APIs. Designed to work with jToker and ng-token-auth.

  6. authentication-zero

    An authentication system generator for Rails applications.

    Project mention: Rails for Everything | news.ycombinator.com | 2025-01-01

    Some simpler alternatives to consider:

    Rails 8 comes with a basic auth generator: https://www.bigbinary.com/blog/rails-8-introduces-a-basic-au...

    There's also https://github.com/lazaronixon/authentication-zero that goes beyond that.

  7. simple_token_authentication

    Simple (and safe*) token authentication for Rails apps or API with Devise.

  8. Sorcery

    Magical Authentication (by Sorcery)

  9. 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
  10. passwordless

    🗝 Authentication for your Rails app without the icky-ness of passwords (by mikker)

  11. devise-jwt

    JWT token authentication with devise and rails

  12. webauthn-ruby

    WebAuthn ruby server library ― Make your Ruby/Rails web server become a conformant WebAuthn Relying Party

    Project mention: WebAuthn Ruby Server Library | news.ycombinator.com | 2024-10-09
  13. omniauth-oauth2

    An abstract OAuth2 strategy for OmniAuth.

  14. omniauth-github

    GitHub strategy for OmniAuth

  15. revise_auth

    A pure Rails authentication system like Devise.

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

    Use revise gem, which is very similar to devise gem.

  16. api_guard

    JWT authentication solution for Rails APIs

  17. rails-authentication-from-scratch

    A step-by-step guide on how to build your own authentication system in Rails from scratch.

  18. graphql_devise

    GraphQL interface on top devise_token_auth

  19. barong

    Barong auth server

  20. rails_mvp_authentication

    An authentication generator for Rails 7. Generate all the files needed to create a feature rich authentication system that you control. No configuration needed.

  21. ethereum-on-rails

    ethereum on rails (template): connect metamask to ruby on rails.

  22. omniauth-twitter2

    OmniAuth strategy for authenticating with Twitter OAuth2

  23. decent_authentication

    Rails authentication from scratch

  24. active_entry

    A flexible access control system for your Rails app

  25. eyedp

    EyeDP is an Identity Provider

  26. SaaSHub

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

    SaaSHub 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 Authentication discussion

Log in or Post with

Ruby Authentication related posts

  • How to use gem omniauth and omniauth-oauth2 to implement SSO for multiple customers

    1 project | dev.to | 30 Nov 2024
  • Efficient Chunked File Downloads in Rails: Streaming CSV Exports

    1 project | dev.to | 7 Oct 2024
  • SpendWise - Budget management app (Ruby on Rails + React) - Part 3

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

    7 projects | dev.to | 16 Aug 2024
  • On the road to ramen profitability 🍜 💸

    4 projects | dev.to | 8 May 2024
  • Warden of Hanami - hanami.rb basic authentication

    5 projects | dev.to | 7 May 2024
  • Ruby on Rails: Native route constraint for authentication

    1 project | dev.to | 19 Apr 2024
  • A note from our sponsor - Nutrient
    www.nutrient.io | 17 Feb 2025
    Other PDF SDKs promise a lot - then break. Laggy scrolling, poor mobile UX, tons of bugs, and lack of support cost you endless frustrations. Nutrient’s SDK handles billion-page workloads - so you don’t have to debug PDFs. Used by ~1 billion end users in more than 150 different countries. Learn more →

Index

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

# Project Stars
1 Devise 24,105
2 OmniAuth 7,931
3 Doorkeeper 5,358
4 Devise Token Auth 3,558
5 authentication-zero 1,708
6 simple_token_authentication 1,509
7 Sorcery 1,451
8 passwordless 1,298
9 devise-jwt 1,264
10 webauthn-ruby 674
11 omniauth-oauth2 501
12 omniauth-github 456
13 revise_auth 405
14 api_guard 276
15 rails-authentication-from-scratch 222
16 graphql_devise 200
17 barong 140
18 rails_mvp_authentication 79
19 ethereum-on-rails 75
20 omniauth-twitter2 42
21 decent_authentication 20
22 active_entry 14
23 eyedp 9

Sponsored
Nutrient – The #1 PDF SDK Library, trusted by 10K+ developers
Other PDF SDKs promise a lot - then break. Laggy scrolling, poor mobile UX, tons of bugs, and lack of support cost you endless frustrations. Nutrient’s SDK handles billion-page workloads - so you don’t have to debug PDFs. Used by ~1 billion end users in more than 150 different countries.
www.nutrient.io

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