home-assistant / my.home-assistant.io

The portal to your home.

Home Page:https://my.home-assistant.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OAuth redirect for spotify integration not working

j4ys0n opened this issue · comments

While installing the spotify integration, after signing in to spotify, the oauth flow tries the following url and errors.

https://accounts.spotify.com/authorize?response_type=code&client_id=client_id_here&redirect_uri=https://my.home-assistant.io/redirect/oauth&state=state_token&scope=user-modify-playback-state,user-read-playback-state,user-read-private,playlist-read-private,playlist-read-collaborative,user-library-read,user-top-read,user-read-playback-position,user-read-recently-played,user-follow-read

results in INVALID_CLIENT: Invalid redirect URI

If this is a manual configuration of Home Assistant, make sure that you have added the My redirect URI as an approved redirect URI to your Spotify client as per the Spotify docs