talira

Doorkeeper

An OAuth 2 provider for Ruby on Rails / Grape

open sourceMITself-hostablefree

Doorkeeper is a Rails engine that turns a Rails or Grape app into an OAuth 2 authorization server, so other apps can ask your users for access and call your API with tokens. It implements the authorization code flow with PKCE, client credentials, refresh tokens, scopes, token revocation and introspection, OAuth for native apps, issuer identification, resource indicators and, as opt-ins, OAuth client ID metadata documents. Active Record is the default store, with extensions for Sequel, MongoDB and others, and doorkeeper-openid_connect adds OpenID Connect.

Problems it solves

  • let third-party apps connect to our Rails API with OAuth instead of API keys
  • add an OAuth server to my app so an MCP client can sign users in
  • build a 'Sign in with our app' flow for partners
  • issue access tokens with scopes and refresh tokens from my Rails app
  • support PKCE for a mobile app talking to our API
  • revoke an integration's access token when a user disconnects it
  • let clients identify themselves with a metadata URL instead of registering first
  • machine-to-machine tokens with the client credentials grant
  • become an OpenID Connect provider in Rails

Features

  • authorization code flow with PKCE
  • client credentials
  • refresh tokens and scopes
  • implicit and password grants
  • token revocation (RFC 7009)
  • token introspection (RFC 7662)
  • OAuth for native apps (RFC 8252)
  • issuer identification (RFC 9207)
  • resource indicators (RFC 8707)
  • client ID metadata documents (opt-in)
View 2 more
  • Active Record, plus Sequel and MongoDB extensions
  • OpenID Connect through doorkeeper-openid_connect

Capabilities

Takes pluginsplan not known

Alternatives

The same job

These do what Doorkeeper does.

  1. Auth0 Hosted authentication and authorization for apps (an Okta product)
  2. Ory Headless, cloud-native identity: authentication, OAuth2/OIDC and permissions
  3. Keycloak Open source identity and access management for modern applications and services
  4. Ory Hydra Open source, OpenID Certified OAuth 2.0 server and OpenID Connect provider

Compare Doorkeeper with the top 3