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

Unable to authorize #9

Closed
thepigeonoftime opened this issue Oct 7, 2019 · 3 comments
Closed

Unable to authorize #9

thepigeonoftime opened this issue Oct 7, 2019 · 3 comments

Comments

@thepigeonoftime
Copy link

Every time I try to authorize I get INVALID_CLIENT: Invalid redirect URI as a reply from Spotify.

The URL generated by spotify-tui is:
https://accounts.spotify.com/authorize?redirect_uri=http:%2F%2Flocalhost:8888%2Fcallback&client_id=[CLIENT_ID]&response_type=code&state=[STATE]&scope=playlist-read-private%20user-library-modify%20user-library-read%20user-modify-playback-state%20user-read-currently-playing%20user-read-playback-state%20user-read-private%20user-read-recently-played&

This happens independent of browser with the homebrew version on MacOs 10.14.5

@QuinnFreedman
Copy link

I got this same error when I accidentally skipped the step 4

1. Go to the Spotify dashboard - https://developer.spotify.com/dashboard/applications
2. Click `Create a Client ID` and create an app
3. Now click `Edit Settings`
4. Add `http://localhost:8888/callback` to the Redirect URIs - you don't need anything running on localhost

@Rigellute
Copy link
Owner

It's a shame the auth process is so strange, but it seems this is the only way at the moment.

As @QuinnFreedman says, adding ``http://localhost:8888/callback` to Redirect URIs is essential.

@Rigellute
Copy link
Owner

It feels wrong when this lands you back on localhost, which doesn't do anything.

I'll explore starting a localhost server to show a simple webpage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants