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

Authentication Error. INVALID_CLIENT: Invalid redirect URI #2

Closed
alichtman opened this issue Sep 16, 2019 · 7 comments
Closed

Authentication Error. INVALID_CLIENT: Invalid redirect URI #2

alichtman opened this issue Sep 16, 2019 · 7 comments

Comments

@alichtman
Copy link

I have followed the instructions in the README and created the file in ~/.config/spotify-tui/client.yml with the correct credentials, and it's being read correctly.

Here is the request being made with important parts removed:

$ spotify-tui
Opened https://accounts.spotify.com/authorize?scope=user-modify-playback-state%20user-read-playback-state%20user-read-private%20user-read-currently-playing%20playlist-read-private%20user-library-read%20user-read-recently-played&client_id=CLIENT_ID&redirect_uri=http:%2F%2Flocalhost:8888%2Fcallback&response_type=code&state=xvlgXiO7MBaweLQ6& in your browser
Enter the URL you were redirected to: 

Here's the error page I get:

image

I'm noticing that the secret isn't included in the request. Should it be?

@Rigellute
Copy link
Owner

Rigellute commented Sep 17, 2019

Ah sorry, there is an extra step I hadn't documented yet.

Go to your application you created in spotify -> click "Edit settings" and add http://localhost:8888/callback to the Redirect URIs

Screenshot 2019-09-17 at 09 31 15

Attempt auth once again.

@alichtman
Copy link
Author

That worked for me. Thanks!

@skull-squadron
Copy link

Ran into this.

@Pi-George
Copy link

Can you please add this step to the setup instructions? This is still an issue

@Rigellute
Copy link
Owner

Rigellute commented Feb 25, 2020

This step is documented in the README (steps 3 & 4)

@gmy77
Copy link

gmy77 commented Jan 14, 2022

I have initially the same problem, only related to port... than i added but not i receive a page "Impossible to reach the page..."

@gmy77
Copy link

gmy77 commented Jan 14, 2022

I have initially the same problem, only related to port... than i added but now i receive a page "Impossible to reach the page..."

PS.... For an unknow reason... i tryed various times... now WORK...

Now perfetct.

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

5 participants