Doorkeeper Guides
Doorkeeper is an OAuth 2.0 provider built in Ruby. It integrates with Ruby on Rails and Grape frameworks.
Installation
The installation process depends on the framework you're using. The first step is to add doorkeeper to your Gemfile:
gem 'doorkeeper'And run bundle install. After this, make sure to follow the guide related to the framework you're using below.
Ruby on Rails
Doorkeeper follows Rails maintenance policy and supports only supported versions of the framework. Currently we support Ruby on Rails >= 5.0. See the guide here.
Grape
Guide for integration with Grape framework can be found here.
ORMs
Doorkeeper supports ActiveRecord by default, but can be configured to work with the following ORMs:
Active Record
by default
Sequel
Couchbase
RethinkDB
Database maintenance
Doorkeeper does not automatically remove expired or revoked tokens and grants. The oauth_access_tokens and oauth_access_grants tables grow indefinitely and can reach millions of rows if left unmanaged.
Prune them periodically with the bundled rake task:
This deletes expired and revoked access tokens and grants. See the Rake tasks guide for details.
Extensions
Extensions that are not included by default and can be installed separately.
Please note that some of the extensions are not maintained by the Doorkeeper team, so please check the repository for the latest updates and issues.
OpenID Connect extension
JWT Token support
Assertion grant extension
I18n translations
CIBA (Client Initiated Backchannel Authentication)
Device Authorization Grant
Example Applications
These applications show how Doorkeeper works and how to integrate with it. Start with the OAuth 2.0 server and use the clients to connect with the server.
OAuth 2.0 Server with Doorkeeper
Sinatra Client connected to Provider App
Devise + Omniauth Client
Tutorials
See list of tutorials in order to learn how to use the gem or integrate it with other solutions / gems.
Last updated
Was this helpful?