https://github.com/johnvuko/omniauth-spotify-oauth2
OmniAuth Strategy for Spotify via OAuth2
https://github.com/johnvuko/omniauth-spotify-oauth2
oauth omniauth spotify
Last synced: 2 months ago
JSON representation
OmniAuth Strategy for Spotify via OAuth2
- Host: GitHub
- URL: https://github.com/johnvuko/omniauth-spotify-oauth2
- Owner: johnvuko
- License: mit
- Created: 2016-10-01T10:15:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-01T10:44:50.000Z (over 9 years ago)
- Last Synced: 2024-07-22T10:48:17.480Z (almost 2 years ago)
- Topics: oauth, omniauth, spotify
- Language: Ruby
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# OmniAuth Spotify OAuth2
[](http://badge.fury.io/rb/omniauth-spotify-oauth2)
Strategy to authenticate [Spotify](https://www.spotify.com) in OmniAuth.
## Installation
OmniAuth Spotify OAuth2 is distributed as a gem, which is how it should be used in your app.
Include the gem in your Gemfile:
gem 'omniauth-spotify-oauth2', '~> 1.0'
Integrate this strategy to your OmniAuth middleware.
```ruby
Rails.application.config.middleware.use OmniAuth::Builder do
provider :spotify, ENV['SPOTIFY_CLIENT_ID'], ENV['SPOTIFY_CLIENT_SECRET'], scope: 'playlist-modify-public'
end
```
## Author
- [Jonathan Tribouharet](https://github.com/jonathantribouharet) ([@johntribouharet](https://twitter.com/johntribouharet))
## License
OmniAuth Spotify OAuth2 is released under the MIT license. See the LICENSE file for more info.