SaaSHub helps you find the best software and product alternatives Learn more →
Top 19 Ruby Authentication and OAuth Projects
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
Devise Token Auth
Token based authentication for Rails JSON APIs. Designed to work with jToker and ng-token-auth.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
warden-github-rails
Use GitHub as authorization and more. Use organizations and teams as means of authorization by simply wrapping your rails routes in a block. Also useful to get a user's details through OAuth.
-
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.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
IMHO the stateful opaque token approach is simple enough that it can (and often does) get baked into whatever language/framework you’re using to write your app. In addition, the very nature of session tokens is such that the logic for what the token actually means/represents lives in your app, on the server.
So, that may be why we don’t see more “opaque session token” standards/libraries out there as an alternative to JWTs.
But if you want an existing example, Devise for Rails [1] has been around a while.
[1] https://github.com/heartcombo/devise
Project mention: What is the best way to implement social logins in an API-only Rails app? | /r/rails | 2023-10-24I've seen the Omniauth gem. But based on this gist it seems this gem is more suitable for web apps. Here is the quote from that gist.
To authenticate our users, we need to add jwt gem to our Gemfile
Devise is build on top of another library and if you ever had to customize Devise, you probably saw that underlying lib. It is called Warden
There is no Hanami specific authentication library. Rails has a plethora of solutions, but nothing was created for Hanami (at least for the current version). There are framework agnostic tools though. OAuth solutions are like that, JWT, libraries like Rodauth. The last one is particularly interesting for Hanami since it is very much in the same "spirit" in terms of design and it is also the most advanced solution on the ruby market.
I have been using devise for a while and it has consistently given me issues. I have wistfully been staring at sorcery for a while now but cant justify the switch since devise is already in the project.
Subsequently, we need a way to authenticate our users to associate prompts with them. Rather than using an incumbent like Devise, I chose to use a different approach. The authentication-zero gem can flexibly generate an authentication system, as opposed to including it as an engine. Conveniently, it comes with options such as:
The devise-jwt gem is an extension of Devise that will allow us to work with JWT tokens. Add the gems to Gemfile, then run bundle install:
Ruby Authentication and OAuth related posts
-
Warden of Hanami - hanami.rb basic authentication
-
Ruby on Rails: Native route constraint for authentication
-
Heroku Build Failure: error:0308010C:digital envelope routines::unsupported
-
What is the best way to implement social logins in an API-only Rails app?
-
Using Action Policy for a Ruby on Rails App: The Basics
-
An Introduction to LiteStack for Ruby on Rails
-
Generate a pre-built authentication system into a rails application
-
A note from our sponsor - SaaSHub
www.saashub.com | 28 May 2024
Index
What are some of the best open-source Authentication and OAuth projects in Ruby? This list will help you:
Project | Stars | |
---|---|---|
1 | Devise | 23,763 |
2 | OmniAuth | 7,846 |
3 | Doorkeeper | 5,259 |
4 | Authlogic | 4,332 |
5 | Clearance | 3,684 |
6 | JWT | 3,560 |
7 | Devise Token Auth | 3,509 |
8 | warden | 2,466 |
9 | OAuth2 | 2,115 |
10 | Rodauth | 1,627 |
11 | Sorcery | 1,415 |
12 | authentication-zero | 1,388 |
13 | devise-jwt | 1,226 |
14 | passwordless | 1,223 |
15 | Shield | 125 |
16 | warden-github-rails | 99 |
17 | rails_mvp_authentication | 78 |
18 | OmniAuth Instagram Graph | 26 |
19 | genkan | 13 |
Sponsored