Doorkeeper VS warden

Compare Doorkeeper vs warden and see what are their differences.

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
Doorkeeper warden
6 7
5,255 2,456
0.3% 0.0%
7.5 0.0
9 days ago over 1 year ago
Ruby Ruby
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Doorkeeper

Posts with mentions or reviews of Doorkeeper. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-17.
  • Best way for user auth with a Rails API?
    4 projects | /r/rails | 17 Apr 2023
    The doorkeeper gem.
  • Rails Personal access tokens
    1 project | /r/rails | 29 Mar 2023
    Take a look at doorkeeper.
  • Zitadel: The best of Auth0 and Keycloak combined
    6 projects | news.ycombinator.com | 17 May 2022
    Disclosure: I work for FusionAuth.

    Depends on what you are looking for.

    If you want a standalone auth server, you can use FusionAuth in docker/docker-compose: https://fusionauth.io/docs/v1/tech/installation-guide/docker

    You can also package up a library; most major languages have one or more OAuth/OIDC libraries: https://github.com/doorkeeper-gem/doorkeeper for Ruby, https://spring.io/projects/spring-security for Spring/Java, https://oauth2.thephpleague.com/ for PHP, https://pypi.org/project/oauthlib/ for Python.

    https://oauth.net/code/ has a further selection of libraries in a variety of languages.

  • Need help implementing PKCE flow in Doorkeeper
    1 project | /r/rails | 22 Sep 2021
    Are there any code examples to implement the PKCE flow in Doorkeeper? I am a bit confused on how to implement it here: https://github.com/doorkeeper-gem/doorkeeper/wiki/Using-PKCE-flow
  • Using the same backend for both web views & mobile app
    1 project | /r/rails | 5 Sep 2021
    For authorization we use Doorkeeper gem with PKCE flow.
  • Authelia is an open-source authentication/authorization server with 2FA/SSO
    7 projects | news.ycombinator.com | 10 Mar 2021
    One thing that is missing from this list is open source language specific libraries. Projects such as https://oauthlib.readthedocs.io/en/latest/oauth2/server.html and https://github.com/doorkeeper-gem/doorkeeper

    Depending on your use case, for example if you only have one application, you might be better off running something embedded in your app, or independent but using the same runtime/deployment environment. Then, when you are ready to add another app or integration, you should be able to introduce a standalone auth system more easily if appropriate (because all your auth interactions should be relatively standardized). I'm a big fan of standalone auth systems as a way to simplify access control and give a single view of a user/customer, but you can also succeed using open source embedded libraries.

    When the moment comes to introduce a standalone system, you should consider a few dimensions (this list pulled from a previous comment of mine: https://news.ycombinator.com/item?id=26360048 ):

       * open source or not

warden

Posts with mentions or reviews of warden. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-19.
  • An Introduction to Devise for Ruby on Rails
    3 projects | dev.to | 19 Jul 2023
    Devise is an authentication library built on top of Warden, a Rack-based authentication framework.
  • A First Look at Hanami 2 for Ruby
    6 projects | dev.to | 15 Dec 2022
    In general, even though the Hanami ecosystem lacks any "plug-and-play" solutions such as Devise, you can use many existing libraries not tightly coupled to Ruby on Rails. For authentication, you can use Warden, OmniAuth or Rodauth. For uploads there is Shrine. The pagination is built into ROM. Integration with exception catchers such as Rollbar is easy.
  • Time to think about swapping off Devise?
    7 projects | /r/rails | 18 Nov 2022
    There hasn't been a lot that has changed to how sessions are managed. Warden itself hasn't had much by way of updates in years, but you didn't even mention that.
  • Which authentication gems to use aside from devise?
    1 project | /r/rails | 19 Oct 2022
    Do you use system tests in authlogic? Devise (or more precisely, Warden) has has a helper that sets the user on next request.
  • Recommended Auth gem for Jr-level developers?
    1 project | /r/rails | 7 Jul 2022
    Devise is probably the most popular option out there. If you're learning to apply your skills in the wild then I'd recommend Devise. In my opinion, there's a learning curve, especially if you want to customize it more. You can also learn the underlying Ruby gem called warden.
  • What's going on with Devise for Rails 7 ?!
    7 projects | /r/rails | 21 Feb 2022
    Warden perhaps? It's the actual authentication part Devise uses.
  • Devise only allow one session per user at the same time
    2 projects | /r/ruby | 19 Jan 2021
    Despite this approach works, it's polluting the controller with authentication logic. Given that Devise uses Warden under the hood, the same can be achieved by taking advantage of warden callbacks that will always get executed when a meaningful event is triggered.

What are some alternatives?

When comparing Doorkeeper and warden you can also consider the following projects:

OmniAuth - OmniAuth is a flexible authentication system utilizing Rack middleware.

Devise - Flexible authentication solution for Rails with Warden.

JWT - A ruby implementation of the RFC 7519 OAuth JSON Web Token (JWT) standard.

Sorcery - Magical Authentication

OAuth2 - A Ruby wrapper for the OAuth 2.0 protocol.

Rodauth - Ruby's Most Advanced Authentication Framework

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

Knock - Seamless JWT authentication for Rails API