A summary of data about the Ruby ecosystem.

https://github.com/omniauth/omniauth-oauth2

An abstract OAuth2 strategy for OmniAuth.
https://github.com/omniauth/omniauth-oauth2

Keywords

authentication hacktoberfest oauth2 omniauth omniauth-strategy

Keywords from Contributors

rubygem activerecord activejob mvc rack rspec crash-reporting rubocop authorization sinatra

Last synced: about 2 hours ago
JSON representation

Repository metadata

An abstract OAuth2 strategy for OmniAuth.

README.md

OmniAuth OAuth2

Gem Version
Code Climate
Coverage Status
Security

This gem contains a generic OAuth2 strategy for OmniAuth. It is meant to serve
as a building block strategy for other strategies and not to be used
independently (since it has no inherent way to gather uid and user info).

Creating an OAuth2 Strategy

To create an OmniAuth OAuth2 strategy using this gem, you can simply subclass
it and add a few extra methods like so:

require 'omniauth-oauth2'

module OmniAuth
  module Strategies
    class SomeSite < OmniAuth::Strategies::OAuth2
      # Give your strategy a name.
      option :name, "some_site"

      # This is where you pass the options you would pass when
      # initializing your consumer from the OAuth gem.
      option :client_options, {:site => "https://api.somesite.com"}

      # You may specify that your strategy should use PKCE by setting
      # the pkce option to true: https://tools.ietf.org/html/rfc7636
      option :pkce, true

      # These are called after authentication has succeeded. If
      # possible, you should try to set the UID without making
      # additional calls (if the user id is returned with the token
      # or as a URI parameter). This may not be possible with all
      # providers.
      uid{ raw_info['id'] }

      info do
        {
          :name => raw_info['name'],
          :email => raw_info['email']
        }
      end

      extra do
        {
          'raw_info' => raw_info
        }
      end

      def raw_info
        @raw_info ||= access_token.get('/me').parsed
      end
    end
  end
end

That's pretty much it!

OmniAuth-OAuth2 for Enterprise

Available as part of the Tidelift Subscription.

The maintainers of OmniAuth-OAuth2 and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use. Learn more.

Supported Ruby Versions

OmniAuth is tested under 2.5, 2.6, 2.7, 3.0, 3.1, 3.2, truffleruby, and JRuby.


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: about 10 hours ago

Total Commits: 242
Total Committers: 44
Avg Commits per committer: 5.5
Development Distribution Score (DDS): 0.628

Commits in past year: 62
Committers in past year: 8
Avg Commits per committer in past year: 7.75
Development Distribution Score (DDS) in past year: 0.21

Name Email Commits
Erik Berlin s****k@g****m 90
tmilewski t****i@g****m 23
Michael Bleigh m****l@i****m 22
Yoran Brondsema y****n@h****o 21
Bobby McDonald b****o@g****m 17
nov n****v@m****p 7
AlexanderPavlenko a****o@r****u 5
Peter M. Goldstein p****n@g****m 4
Jack Hartzler j****r@g****m 4
Guilherme Simoes g****s@g****m 3
Michael Bleigh m****h@m****m 3
dependabot[bot] 4****] 3
Jesse Doyle j****e@a****a 2
Chef.Delicious.Chen c****n@g****m 2
Isaac Sanders i****c@i****m 2
Jonathan Julian j****n@g****m 2
Mark Dodwell m****k@m****k 2
Masafumi Koba 4****s 2
Patricio Cano s****2@g****m 2
mmenisy m****y@j****p 2
swamp09 s****a@e****p 1
menisy e****y@g****m 1
Yuji Yaginuma y****a@g****m 1
Yauhen Kharuzhy j****r@g****m 1
Jake Dahn j****e@a****m 1
Jerry Cheung j****h@w****m 1
Lucas Aragno l****s@i****m 1
Markus Koller m****r@g****m 1
王振威 j****0@g****m 1
Vokhmin Alexey V a****n@g****m 1
and 14 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 91
Total pull requests: 105
Average time to close issues: about 4 years
Average time to close pull requests: about 1 year
Total issue authors: 83
Total pull request authors: 74
Average comments per issue: 4.74
Average comments per pull request: 2.81
Merged pull request: 56
Bot issues: 0
Bot pull requests: 5

Past year issues: 3
Past year pull requests: 13
Past year average time to close issues: 2 months
Past year average time to close pull requests: 3 months
Past year issue authors: 2
Past year pull request authors: 6
Past year average comments per issue: 1.67
Past year average comments per pull request: 1.08
Past year merged pull request: 6
Past year bot issues: 0
Past year bot pull requests: 4

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/omniauth/omniauth-oauth2

Top Issue Authors

  • sriedel (3)
  • sferik (3)
  • isaacsanders (2)
  • Drblack101 (2)
  • dombarnes (2)
  • dgertych-monterail (2)
  • rgarcia (1)
  • kuraga (1)
  • gabceb (1)
  • ehsahil (1)
  • myitcv (1)
  • kurtisnelson (1)
  • DriftingShadows (1)
  • pravi (1)
  • mulka (1)

Top Pull Request Authors

  • tmilewski (7)
  • dependabot[bot] (5)
  • petergoldstein (5)
  • nov (3)
  • sferik (3)
  • isaacsanders (3)
  • ybiquitous (3)
  • BobbyMcWho (3)
  • mkdynamic (3)
  • jjulian (2)
  • spariev (2)
  • masterkain (2)
  • agrobbin (2)
  • nickstanish (2)
  • dshorthouse (1)

Top Issue Labels

Top Pull Request Labels

  • dependencies (5)
  • github_actions (3)
  • hacktoberfest (1)
  • ruby (1)

Package metadata

gem.coop: omniauth-oauth2

An abstract OAuth2 strategy for OmniAuth.

  • Homepage: https://github.com/omniauth/omniauth-oauth2
  • Documentation: http://www.rubydoc.info/gems/omniauth-oauth2/
  • Licenses: MIT
  • Latest release: 1.10.1 (published 3 days ago)
  • Last Synced: 2026-11-17T01:20:54.535Z (about 19 hours ago)
  • Versions: 26
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 195,318,739 Total
  • Docker Downloads: 598,146,711
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 0.076%
    • Downloads: 0.151%
    • Docker downloads count: 0.152%
  • Maintainers (4)
rubygems.org: omniauth-oauth2

An abstract OAuth2 strategy for OmniAuth.

proxy.golang.org: github.com/omniauth/omniauth-oauth2

guix: ruby-omniauth-oauth2

Abstract OAuth2 strategy for OmniAuth

  • Homepage: https://github.com/omniauth/omniauth-oauth2
  • Documentation: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/ruby-xyz.scm#n2571
  • Licenses: expat
  • Latest release: 1.8.0 (published 9 months ago)
  • Last Synced: 2026-04-27T16:18:49.670Z (7 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
ubuntu-24.04: ruby-omniauth-oauth2

  • Homepage: https://github.com/omniauth/omniauth-oauth2
  • Licenses: mit
  • Latest release: 1.8.0-1 (published 9 months ago)
  • Last Synced: 2026-03-06T16:02:36.081Z (9 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
ubuntu-22.04: ruby-omniauth-oauth2

  • Homepage: https://github.com/omniauth/omniauth-oauth2
  • Licenses: mit
  • Latest release: 1.7.1-2 (published 9 months ago)
  • Last Synced: 2026-03-13T22:39:26.324Z (8 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
ubuntu-23.04: ruby-omniauth-oauth2

  • Homepage: https://github.com/omniauth/omniauth-oauth2
  • Licenses: mit
  • Latest release: 1.8.0-1 (published 9 months ago)
  • Last Synced: 2026-03-11T18:38:38.910Z (8 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
debian-10: ruby-omniauth-oauth2

  • Homepage: https://github.com/omniauth/omniauth-oauth2
  • Documentation: https://packages.debian.org/buster/ruby-omniauth-oauth2
  • Licenses: mit
  • Latest release: 1.5.0-1 (published 9 months ago)
  • Last Synced: 2026-09-23T03:30:37.343Z (about 2 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
ubuntu-23.10: ruby-omniauth-oauth2

  • Homepage: https://github.com/omniauth/omniauth-oauth2
  • Licenses: mit
  • Latest release: 1.8.0-1 (published 9 months ago)
  • Last Synced: 2026-08-22T17:30:53.809Z (3 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
ubuntu-20.04: ruby-omniauth-oauth2

  • Homepage: https://github.com/omniauth/omniauth-oauth2
  • Licenses: mit
  • Latest release: 1.5.0-1 (published 9 months ago)
  • Last Synced: 2026-07-24T20:30:44.818Z (4 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
ubuntu-24.10: ruby-omniauth-oauth2

  • Homepage: https://github.com/omniauth/omniauth-oauth2
  • Licenses: mit
  • Latest release: 1.8.0-1 (published 9 months ago)
  • Last Synced: 2026-03-13T11:22:16.571Z (8 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
debian-12: ruby-omniauth-oauth2

  • Homepage: https://github.com/omniauth/omniauth-oauth2
  • Documentation: https://packages.debian.org/bookworm/ruby-omniauth-oauth2
  • Licenses: mit
  • Latest release: 1.8.0-1 (published 9 months ago)
  • Last Synced: 2026-03-13T23:45:41.519Z (8 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
debian-13: ruby-omniauth-oauth2

  • Homepage: https://github.com/omniauth/omniauth-oauth2
  • Documentation: https://packages.debian.org/trixie/ruby-omniauth-oauth2
  • Licenses: mit
  • Latest release: 1.8.0-1 (published 9 months ago)
  • Last Synced: 2026-03-14T18:10:53.290Z (8 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
debian-11: ruby-omniauth-oauth2

  • Homepage: https://github.com/omniauth/omniauth-oauth2
  • Documentation: https://packages.debian.org/bullseye/ruby-omniauth-oauth2
  • Licenses: mit
  • Latest release: 1.6.0-1 (published 9 months ago)
  • Last Synced: 2026-08-09T03:01:19.878Z (3 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%

Dependencies

Gemfile rubygems
  • coveralls_reborn ~> 0.19.0 development
  • rack-test >= 0 development
  • rspec ~> 3.2 development
  • simplecov-lcov >= 0 development
  • webmock ~> 3.0 development
  • rake ~> 13.0
omniauth-oauth2.gemspec rubygems
  • bundler ~> 2.0 development
  • oauth2 >= 1.4, < 3
  • omniauth ~> 2.0
.github/workflows/main.yml actions
  • actions/checkout v2 composite
  • coverallsapp/github-action v1.1.2 composite
  • ruby/setup-ruby v1 composite
.github/workflows/gem_push.yml actions
  • actions/checkout 3d3c42e5aac5ba805825da76410c181273ba90b1 composite
  • ruby/setup-ruby 824c0e29fdfc7d689c191c27acc969d2d04b7dd8 composite
  • rubygems/release-gem 7f9650160c1a4e7989fdc9855807bdbd421d8b6b composite
.github/workflows/perf-comment.yml actions
  • actions/download-artifact v8 composite
.github/workflows/perf.yml actions
  • actions/checkout v7 composite
  • actions/download-artifact v8 composite
  • actions/upload-artifact v7 composite
  • ruby/setup-ruby v1 composite

Score: 31.230812735783655