-
-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spotify integation wrong redirect when importing from yaml #73113
Comments
spotify documentation |
Hey there @frenck, mind taking a look at this issue as it has been labeled with an integration ( |
I've had the similiar problem. They have written a note-section: "If you receive an INVALID_CLIENT: Invalid redirect URI [...]" Followed by some steps that you can read on the link below: When you have followed the step in the previous link, you can follow these steps in the link below: It worked right away. |
I have tried that, but clicking the open website button, opens https://accounts.spotify.com/authorize?response_type=code&client_id=&redirect_uri=https://my.home-assistant.io/redirect/oauth&state=eyJ0eXAiO, and not the correct http://homeassistant.local:8123/auth/external/callback URI |
Okey I think I understand.
I tried it again and it worked. Let me know if that fixes it. |
You're correct, both of the URI's need to be allowed. Adding https://my.home-assistant.io/redirect/oauth solved the issue. |
Followed @antfolkarn advice above - spent last 4 hours but no joy. Is it still working? Not sure if ive missed a step - I put my Naba Casa URL in the config file as well, perhaps I have that wrong. I seem to get the redirect URL replaced with https://my.home-assistant.io |
The problem
When using 'Import from configuration.yaml', the Spotify integration keeps redirecting to https://my.home-assistant.io/redirect/oauth and not to http://homeassistant.local:8123/auth/external/callback, even though the entry in the configuration.yaml and redirect URI in the Spotify dashboard are configured correctly.
What version of Home Assistant Core has the issue?
2022.6.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Spotify
Link to integration documentation on our website
https://www.home-assistant.io/integrations/spotify/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: