Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/schwarz/omniauth-twitch
OmniAuth strategy for Twitch
https://github.com/schwarz/omniauth-twitch
Last synced: about 11 hours ago
JSON representation
OmniAuth strategy for Twitch
- Host: GitHub
- URL: https://github.com/schwarz/omniauth-twitch
- Owner: schwarz
- License: mit
- Created: 2014-02-26T20:21:03.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-02-27T18:26:01.000Z (over 10 years ago)
- Last Synced: 2023-03-15T23:05:21.146Z (over 1 year ago)
- Language: Ruby
- Size: 133 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OmniAuth Twitch
Twitch OAuth 2 strategy for OmniAuth.
Supports the authorization code flow as per https://github.com/justintv/Twitch-API/blob/master/authentication.md
## Installation
Add the following line to your Gemfile:
```ruby
gem 'omniauth-twitch', git: 'git://github.com/adabei/omniauth-twitch.git'
```Then `bundle install`.
## Usage
Add the middleware to your Rails app by creating an initializer in config/initializer/omniauth.rb:
```ruby
Rails.application.config.middleware.use OmniAuth::Builder do
provider :twitch, ENV['TWITCH_ID'], ENV['TWITCH_SECRET'], scope: 'user_read'
end
```Specify which permissions you need using `scope` and a space seperated list.
## License
omniauth-twitch is released under the MIT license. See LICENSE for details.