Skip to content
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

Closed
Christophe999s opened this issue Jun 6, 2022 · 7 comments
Closed

Spotify integation wrong redirect when importing from yaml #73113

Christophe999s opened this issue Jun 6, 2022 · 7 comments
Assignees

Comments

@Christophe999s
Copy link

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

@probot-home-assistant
Copy link

spotify documentation
spotify source
(message by IssueLinks)

@probot-home-assistant
Copy link

Hey there @frenck, mind taking a look at this issue as it has been labeled with an integration (spotify) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)

@antfolkarn
Copy link

I've had the similiar problem.
What I did to resolve it, was just to follow the documentation.

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.

@Christophe999s
Copy link
Author

@antfolkarn
Copy link

antfolkarn commented Jun 6, 2022

Okey I think I understand.

  1. Go to https://developer.spotify.com/dashboard
  2. Edit settings
  3. I added both url:s provided above, that is:

I tried it again and it worked. Let me know if that fixes it.

image

@Christophe999s
Copy link
Author

You're correct, both of the URI's need to be allowed. Adding https://my.home-assistant.io/redirect/oauth solved the issue.
Thank you!

@davidjac
Copy link

davidjac commented Jul 2, 2022

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

@github-actions github-actions bot locked and limited conversation to collaborators Aug 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants