# OAuth2 (Ruby)

> A Ruby gem for OAuth 2.0 clients, including OAuth 2.1 and OpenID Connect

Source: https://talira.ai/catalog/oauth2-ruby-ev239n8v
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [security / auth / libraries](https://talira.ai/categories/security/auth/libraries)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Ruby OAuth](https://talira.ai/orgs/ruby-oauth.md)

The oauth2 gem implements OAuth 2.0 clients (not servers) in Ruby: it creates a client for a provider, sends authorization and token requests (authorization code, client credentials and the other grant types), and makes authenticated requests with the resulting access tokens, with support for the OAuth 2.1 draft and OpenID Connect. It is maintained by the ruby-oauth organization.

## Links

- Website: https://oauth2.galtzo.com/
- GitHub: https://github.com/ruby-oauth/oauth2
- Docs: https://oauth2.galtzo.com/

## Problems it solves

- get an OAuth 2.0 access token from a provider in Ruby
- call an API that uses OAuth 2.0 client credentials from Ruby
- add OpenID Connect sign-in to a Ruby app

## Features

- OAuth 2.0 client for Ruby
- OAuth 2.1 draft and OpenID Connect
- authorization code, client credentials and other grants
- access token handling for authenticated requests

## Trust

Overall: 0.65 out of 1.
Signals: maintenance 1.00, adoption 0.67, momentum 0.32, community 0.88, backing 0.30, extensibility 0.00.

- last commit 2 days ago
- 117 commits in the last 90 days
- latest release v2.1.0 35 days ago
- 2.2k GitHub stars
- 159 contributors
- accepts sponsorship (Github, Buy Me A Coffee, Ko Fi)
- backed by Ruby OAuth

## Alternatives

- [OAuth (Ruby)](https://talira.ai/catalog/oauth-ruby-1zt3nxrk.md): OAuth 1.0 and 1.0a clients and servers in Ruby

## Sources

[^1]: https://github.com/ruby-oauth/oauth2/blob/main/LICENSE.md (checked 29 Nov 2026)
