# ruby-oauth/oauth2

🔐 oauth2 - A Ruby wrapper for the OAuth 2.0, & 2.1 Authorization Frameworks, including OpenID Connect (OIDC)

Repository: https://github.com/ruby-oauth/oauth2
Canonical: https://ross.abutalabs.com/products/ruby-oauth-oauth2
Homepage: https://oauth2.galtzo.com/
Language: Ruby
License: NOASSERTION
License Family: other
Topics: authentication, authorization, oauth2, oauth2-client, security, oidc, oidc-client
Last push: 2026-08-18T00:34:20+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 93, longevity 100
- inputs: {"age_days": 5977, "days_push": 16, "days_rel": 50, "gap_med": 6, "n_releases_24m": 16}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2179, forks 627 (observed 2026-08-28T04:06:23.078850+00:00)

## What it is
A Ruby gem implementing OAuth 2.0 and 2.1 client functionality, including OpenID Connect (OIDC) support. It handles token requests, grant types (client credentials, authorization code, etc.), and authentication schemes for Ruby applications acting as OAuth clients.

## Use cases
- add oauth2 login to a ruby app
- get access tokens via client credentials flow in ruby
- implement openid connect client in ruby
- exchange authorization code for token in rails
- authenticate against microsoft azure ad from ruby
- refresh oauth tokens in a ruby application

## When to choose
- your Ruby app needs to act as an OAuth 2.0/2.1 client to obtain tokens from providers
- you need OIDC support or multiple grant types and auth schemes in Ruby

## When to avoid
- you need to build an OAuth authorization server or provider in Ruby
- your project is not written in Ruby

## Facets
- artifact type: library
- maturity: active
- function: auth, authorization, http-client
- domain: security, web-development, apis
- platform: ruby, jvm
- tags: oauth2, oauth2-client, oidc, openid-connect, token-management, rubygem

## Member repositories
- ruby-oauth/oauth2 (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:23.078850+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-30T02:48:46.901069+00:00, confidence not recorded.
  - readme: https://github.com/ruby-oauth/oauth2 (fetched 2026-08-28T04:06:23.078850+00:00, sha 830149866fe2)
  - homepage: https://oauth2.galtzo.com/ (fetched 2026-08-29T10:28:41.292351+00:00, sha 9ad551bbe703)
- Data as of 2026-08-30T08:39:29.467469+00:00.
