mirror of
https://github.com/Rigellute/spotify-tui.git
synced 2026-04-26 16:15:55 +03:00
[GH-ISSUE #1049] Spotify Auth Failed #470
Labels
No labels
bug
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-tui#470
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @EsharkyTheGreat on GitHub (Dec 3, 2022).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/1049
After entering the client id and client secret, the authentication url is opened in my browser and the redirected to
localhost:8888/callback?code=something_here, however there it is unable to establish a connection and spt prints outSpotify Auth Failed@pehlicd commented on GitHub (Dec 4, 2022):
Have you done this step 4 in
Connecting to Spotify’s APIdoc? You must enter the url in your spotify app dashboard for once.@EsharkyTheGreat commented on GitHub (Dec 4, 2022):
Yes, I've added the url and as I said I get redirected to localhost after authentication, I even get the code parameter in the url I'm getting redirected to, but I get spotfiy auth failed after that
@pehlicd commented on GitHub (Dec 4, 2022):
Could you go to Spotify Dashboard and go to the app that you created earlier after that click to the Edit Settings button then check the Redirect URIs section? You should see
http://localhost:8888/callbackurl if you don't see, add it and runspt.@EsharkyTheGreat commented on GitHub (Dec 4, 2022):
Yup, as I said already the url is present in the Refirect URIs section, and I also get redirected to localhost:8888/callback?code= just for a second then the spt binary throws auth failed.
(edit) From the code I see that the err message
spotify auth failedis thrown when thecodevalue recieved by the local webserver is used to get a accesstoken but it fails@pehlicd commented on GitHub (Dec 4, 2022):
I guess it should only be
http://localhost:8888/callbackthat url not thelocalhost:8888/callback?code=. You can also check the${HOME}/.config/spotify-tui/client.ymlfile just to be sure that you have provided the true credentials.