guilhermesad / rspotify

A ruby wrapper for the Spotify Web API
MIT License
717 stars 290 forks source link

Update omniauth-oauth2 dependency #178

Closed ppicazo closed 5 years ago

ppicazo commented 5 years ago
guilhermesad commented 5 years ago

👍

cristofer commented 5 years ago

hey guys! Is this not reporting you issues? I couldnt make it work with omniauth2: 1.5.0 (neither with 1.6.0 nor 1.4.0), so I had to go back to 1.3.1. The error is related with the wrong format URL for the callback:

ERROR -- omniauth: (spotify) Authentication failure! invalid_credentials: OAuth2::Error, invalid_grant: Invalid redirect URI {"error":"invalid_grant","error_description":"Invalid redirect URI"}

Any ideas? @guilhermesad @ppicazo

Thanks!

ppicazo commented 5 years ago

@cristofer I've not seen that or any other error with Spotify OAuth flows using rspotify (2.4.1) in my app.

My OmniAuth is setup like this:

use OmniAuth::Builder do
  provider :spotify, ENV['SPOTIFY_CLIENT_ID'], ENV['SPOTIFY_CLIENT_SECRET'], provider_ignores_state: true, scope: "playlist-read-private playlist-read-collaborative"
end