Skip to content

📝 Add Alternatives section to README (closes #674)#730

Merged
pboling merged 5 commits into
ruby-oauth:mainfrom
jonathangrinstead:docs/alternatives-section
Jun 6, 2026
Merged

📝 Add Alternatives section to README (closes #674)#730
pboling merged 5 commits into
ruby-oauth:mainfrom
jonathangrinstead:docs/alternatives-section

Conversation

@jonathangrinstead

@jonathangrinstead jonathangrinstead commented May 31, 2026

Copy link
Copy Markdown

What & why

Addresses #674.

The top of the README had a "Synopsis" section with an informal bullet list ("If it seems like you are in the wrong place, you might try one of these…") that loosely approximated an alternatives list. #674 asked for this to become a real "Alternatives" section — a table of the alternatives and why you might use each.

This PR replaces that bullet list with an ### Alternatives subsection containing a comparison table.

The table

Library Role When to use it
this gem (oauth2) OAuth 2.0/2.1 + OIDC client Small, spec-faithful, low-level client with fine-grained control
omniauth + omniauth-oauth2 "Log in with…" client (Rack) Strategy-based user authentication in Rack/Rails
openid_connect OpenID Connect client & server Full OIDC, batteries included
rack-oauth2 OAuth 2.0 client and server Lower-level Rack primitives, client + server
doorkeeper OAuth 2.0 server / provider You want to be the authorization server
oauth (sibling gem) OAuth 1.0a client & server Provider only speaks OAuth 1.0a

The selection follows the guidance in the #674 thread (doorkeeper as the major server library; rack-oauth2/openid_connect as the prominent client-side options), and adds omniauth-oauth2 and the OAuth 1.0a sibling gem for completeness. Maintainers/URLs/purpose were verified against each gem's RubyGems page.

Notes for reviewer

  • All previously existing links (oauth2-spec, sibling-gem, doorkeeper-gem) are preserved; new reference-style link definitions were added alongside them, plus an OpenID Connect spec link.
  • The "this gem" row reuses the existing [📜src-gh] reference definition.
  • Docs-only change — no code touched. Happy to add a CHANGELOG entry under Unreleased if you'd like one.
  • Descriptions of the other gems were drawn from their RubyGems pages; corrections from anyone who knows them better are very welcome.

Closes ruby-oauth#674

Replace the informal "if you are in the wrong place" bullet list under
the Synopsis with a real "Alternatives" section: a comparison table of
the prominent Ruby OAuth/OIDC libraries (omniauth-oauth2, openid_connect,
rack-oauth2, doorkeeper, oauth 1.0a) describing each library's role and
when you'd reach for it instead of this client gem.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@codecov

codecov Bot commented May 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (171609a) to head (3273e90).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #730   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           15        15           
  Lines          562       562           
  Branches       171       171           
=========================================
  Hits           562       562           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jonathangrinstead jonathangrinstead marked this pull request as draft May 31, 2026 15:49

@pboling pboling left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome! Thanks :) I'll add the new oauth2-mcp to it after merging.

@pboling pboling marked this pull request as ready for review June 6, 2026 07:56
Copilot AI review requested due to automatic review settings June 6, 2026 07:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the project’s README to replace an informal “you might try one of these” bullet list with a structured “Alternatives” section that compares related OAuth/OIDC gems and directs readers to a better-fit library when oauth2 isn’t the right tool.

Changes:

  • Replaced the prior bullet-list guidance with an ### Alternatives subsection containing a comparison table.
  • Added new reference-style link definitions for the listed libraries and an OpenID Connect link.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
Comment thread README.md
Comment on lines +134 to +137
See also the [OAuth 2.0 Spec][oauth2-spec] and the [OpenID Connect Spec][oidc-spec].

[oauth2-spec]: https://oauth.net/2/
[oidc-spec]: https://openid.net/developers/how-connect-works/
pboling and others added 2 commits June 6, 2026 15:00
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: |7eter l-|. l3oling <peter.boling@gmail.com>
@pboling pboling merged commit 4645ea3 into ruby-oauth:main Jun 6, 2026
25 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants