Closed ppicazo closed 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!
@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
rspotify
is used alongside other gems which depend on newer versions ofomniauth-oauth2