# doorkeeper-gem/doorkeeper

Doorkeeper is an OAuth 2 provider for Ruby on Rails / Grape.

Repository: https://github.com/doorkeeper-gem/doorkeeper
Canonical: https://ross.abutalabs.com/products/doorkeeper
Homepage: https://doorkeeper.gitbook.io/guides/
Language: Ruby
License: MIT
License Family: permissive
Topics: doorkeeper, oauth, oauth2-provider, oauth2-server, ruby-on-rails, grape, authorization, oauth2, authentication, identity
Last push: 2026-08-26T08:13:59+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 85, longevity 100
- inputs: {"age_days": 5402, "days_push": 7, "days_rel": 22, "gap_med": 45.0, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5521, forks 1078 (observed 2026-08-28T04:09:21.894714+00:00)

## What it is
Doorkeeper is a Ruby gem (Rails engine) that adds OAuth 2.0 provider functionality to Ruby on Rails or Grape applications. It implements the OAuth 2.0 authorization framework including authorization code, client credentials, password credentials, and implicit grant flows, plus token revocation, introspection, and PKCE.

## Use cases
- add OAuth 2.0 provider to a Rails app
- issue access tokens for a Grape API
- implement authorization code flow with PKCE
- support token revocation and introspection endpoints
- secure an API with OAuth 2.0 access tokens
- manage OAuth applications and scopes for third-party clients

## When to choose
- you need your Rails or Grape app to act as an OAuth 2.0 authorization server
- you want a mature, spec-compliant OAuth 2 provider with broad RFC coverage
- you need flexible ORM support (Active Record, MongoDB, Sequel, Couchbase)

## When to avoid
- you only need to consume OAuth 2.0 tokens as a client rather than issue them
- your app is not built on Rails or Grape
- you need a standalone identity provider service rather than an embedded engine

## Facets
- artifact type: library
- maturity: stable
- function: auth, authorization, middleware, security
- domain: web-development, backend, security, apis
- platform: ruby, self-hosted
- tags: oauth2-provider, rails-engine, grape, oauth2-server, token-management, pkce, web-server

## Member repositories
- doorkeeper-gem/doorkeeper (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:21.894714+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:55:47.242728+00:00, confidence not recorded.
  - readme: https://github.com/doorkeeper-gem/doorkeeper (fetched 2026-08-28T04:09:21.894714+00:00, sha b9e2da060fd9)
  - homepage: https://doorkeeper.gitbook.io/guides/ (fetched 2026-08-29T08:51:11.165510+00:00, sha 51987d7e3870)
- Data as of 2026-08-30T08:39:29.467469+00:00.
