A summary of data about the Ruby ecosystem.

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

A generic OAuth strategy for OmniAuth.
https://github.com/omniauth/omniauth-oauth

Keywords from Contributors

omniauth oauth2 omniauth-strategy rubygems rack activejob activerecord mvc hash-extensions rspec

Last synced: about 2 hours ago
JSON representation

Repository metadata

A generic OAuth strategy for OmniAuth.

README.md

OmniAuth OAuth

This gem contains a generic OAuth 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 OAuth Strategy

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

require 'json'
require 'omniauth-oauth'

module OmniAuth
  module Strategies
    class SomeSite < OmniAuth::Strategies::OAuth
      # 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"}

      # 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{ request.params['user_id'] }

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

      extra do
        {
          'raw_info' => raw_info
        }
      end

      def raw_info
        @raw_info ||= JSON.load(access_token.get('/me.json').body)
      end
    end
  end
end

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 1 day ago

Total Commits: 41
Total Committers: 12
Avg Commits per committer: 3.417
Development Distribution Score (DDS): 0.634

Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0

Name Email Commits
Erik Michaels-Ober s****k@g****m 15
Michael Bleigh m****l@i****m 14
Vladimir Kitaev v****v@f****m 2
Mark Dodwell m****k@m****k 2
Shinichi Maeshima n****t@g****m 1
Jordi Massaguer Pla j****a@s****e 1
Javier Diez Flaquer j****f@g****m 1
Jamie Wilkinson j****e@j****m 1
Daniel Doubrovkine (dB.) @dblockdotorg d****k@d****g 1
Bobby McDonald b****o@g****m 1
Adif Sgaid 6****d 1
Christopher Slade c****e@g****m 1

Committer domains:


Issue and Pull Request metadata

Last synced: about 1 month ago

Total issues: 5
Total pull requests: 20
Average time to close issues: almost 6 years
Average time to close pull requests: over 3 years
Total issue authors: 5
Total pull request authors: 18
Average comments per issue: 3.4
Average comments per pull request: 1.25
Merged pull request: 10
Bot issues: 0
Bot pull requests: 0

Past year issues: 0
Past year pull requests: 2
Past year average time to close issues: N/A
Past year average time to close pull requests: about 1 month
Past year issue authors: 0
Past year pull request authors: 2
Past year average comments per issue: 0
Past year average comments per pull request: 1.0
Past year merged pull request: 1
Past year bot issues: 0
Past year bot pull requests: 0

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

Top Issue Authors

  • richseviora (1)
  • arunagw (1)
  • scottwater (1)
  • pravi (1)
  • efleming (1)

Top Pull Request Authors

  • mkdynamic (4)
  • mrichie (2)
  • adifsgaid (2)
  • willnet (2)
  • andrew (2)
  • JamesChevalier (2)
  • jdiezf (1)
  • nevir (1)
  • Meat-Chopper (1)
  • jordimassaguerpla (1)
  • colmarius (1)
  • dblock (1)
  • jamiew (1)
  • sferik (1)
  • crslade (1)

Top Issue Labels

Top Pull Request Labels


Dependencies

Gemfile rubygems
  • rack-test >= 0 development
  • rspec ~> 3.2 development
  • rubocop >= 0.30 development
  • simplecov >= 0 development
  • webmock >= 0 development
  • rake >= 0
omniauth-oauth.gemspec rubygems
  • oauth >= 0
  • omniauth >= 1.0, < 3
.github/workflows/ci.yml actions
  • actions/checkout v4 composite
  • ruby/setup-ruby v1 composite

Score: 6.854354502255022