Doorkeeper is a gem that makes it easy to introduce OAuth 2 provider functionality to your Rails or Grape application.
Doorkeeper alternatives and similar gems
Based on the "OAuth" category.
Alternatively, view Doorkeeper alternatives based on common mentions on social networks and blogs.
OmniAuth strategy for Instagram Graph API.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Doorkeeper or a related project?
Doorkeeper — awesome OAuth 2 provider for your Rails / Grape app.
Doorkeeper is a gem (Rails engine) that makes it easy to introduce OAuth 2 provider functionality to your Ruby on Rails or Grape application.
- The OAuth 2.0 Authorization Framework
- OAuth 2.0 Token Revocation
- OAuth 2.0 Token Introspection
- OAuth 2.0 Threat Model and Security Considerations
- OAuth 2.0 for Native Apps
- Proof Key for Code Exchange by OAuth Public Clients
Table of Contents
<!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
- Example Applications
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
This documentation is valid for
main branch. Please check the documentation for the version of doorkeeper you are using in:
Additionally, other resources can be found on:
- Guides with how-to get started and configuration documentation
- See the Wiki with articles and other documentation
- Screencast from railscasts.com: #353 OAuth with Doorkeeper
- See upgrade guides
- For general questions, please post on Stack Overflow
- See [SECURITY.md](SECURITY.md) for this project's security disclose policy
Installation depends on the framework you're using. The first step is to add the following to your Gemfile:
bundle install. After this, check out the guide related to the framework you're using.
Ruby on Rails
Doorkeeper currently supports Ruby on Rails >= 5.0. See the guide here.
Guide for integration with Grape framework can be found here.
Doorkeeper supports Active Record by default, but can be configured to work with the following ORMs:
|Active Record||by default|
Extensions that are not included by default and can be installed separately.
|OpenID Connect extension||doorkeeper-gem/doorkeeper-openid_connect|
|JWT Token support||doorkeeper-gem/doorkeeper-jwt|
|Assertion grant extension||doorkeeper-gem/doorkeeper-grants_assertion|
|CIBA - Client Initiated Backchannel Authentication Flow extention||doorkeeper-ciba|
|Device Authorization Grant||doorkeeper-device_authorization_grant|
These applications show how Doorkeeper works and how to integrate with it. Start with the oAuth2 server and use the clients to connect with the server.
|OAuth2 Server with Doorkeeper||doorkeeper-gem/doorkeeper-provider-app|
|Sinatra Client connected to Provider App||doorkeeper-gem/doorkeeper-sinatra-client|
|Devise + Omniauth Client||doorkeeper-gem/doorkeeper-devise-client|
See list of tutorials in order to learn how to use the gem or integrate it with other solutions / gems.
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]
Codecademy supports open source as part of its mission to democratize tech. Come help us build the education the world deserves: https://codecademy.com/about/careers
If you prefer not to deal with the gory details of OAuth 2, need dedicated customer support & consulting, try the cloud-based SaaS version: https://oauth.io
Wealthsimple is a financial company on a mission to help everyone achieve financial freedom by providing products and advice that are accessible and affordable. Using smart technology, Wealthsimple takes financial services that are often confusing, opaque and expensive and makes them simple, transparent, and low-cost. See what Investing on Autopilot is all about: https://www.wealthsimple.com
To run the local engine server:
bundle install bundle exec rake doorkeeper:server
By default, it uses the latest Rails version with ActiveRecord. To run the tests with a specific Rails version:
BUNDLE_GEMFILE=gemfiles/rails_6_0.gemfile bundle exec rake
You can also experiment with the changes using
bin/console. It uses in-memory SQLite database and default
Doorkeeper config, but you can reestablish connection or reconfigure the gem if you need.
Also, check out our [contributing guidelines page](CONTRIBUTING.md).
Thanks to all our awesome contributors!
MIT License. Created in Applicake. Maintained by the community.
*Note that all licence references and agreements mentioned in the Doorkeeper README section above are relevant to that project's source code only.