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.
- Host: GitHub
- URL: https://github.com/omniauth/omniauth-oauth
- Owner: omniauth
- License: mit
- Created: 2011-09-22T18:28:56.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2024-08-27T16:23:06.000Z (over 1 year ago)
- Last Synced: 2026-02-07T17:17:34.614Z (24 days ago)
- Language: Ruby
- Homepage:
- Size: 39.1 KB
- Stars: 78
- Watchers: 5
- Forks: 44
- Open Issues: 1
- Releases: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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
- Name: OmniAuth Community
- Login: omniauth
- Email:
- Kind: organization
- Description:
- Website:
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/17064356?v=4
- Repositories: 21
- Last ynced at: 2024-03-25T19:32:34.895Z
- Profile URL: https://github.com/omniauth
GitHub Events
Total
- Watch event: 3
- Fork event: 1
Last Year
- Watch event: 3
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 | 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:
- dblock.org: 1
- jamiedubs.com: 1
- suse.de: 1
- mkdynamic.co.uk: 1
- freeconferencecall.com: 1
- intridea.com: 1
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
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
- rack-test >= 0 development
- rspec ~> 3.2 development
- rubocop >= 0.30 development
- simplecov >= 0 development
- webmock >= 0 development
- rake >= 0
- oauth >= 0
- omniauth >= 1.0, < 3
- actions/checkout v4 composite
- ruby/setup-ruby v1 composite
Score: 6.854354502255022