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

[bug] Authentication Issues #580

Closed
w-lfchen opened this issue Oct 23, 2024 · 6 comments · Fixed by #570
Closed

[bug] Authentication Issues #580

w-lfchen opened this issue Oct 23, 2024 · 6 comments · Fixed by #570
Labels
bug Something isn't working

Comments

@w-lfchen
Copy link
Contributor

w-lfchen commented Oct 23, 2024

this issue is a write-up of #520 due to that issue being way too long and tiring to read.

summary

spotify deprecated the login api used for authentication.
therefore, it is currently impossible to log in with the existing master branch/any version of spotify-player
a fix is being worked on in #570, the pr can be used for basic functionality, some issues remain.
feel free to contribute by working on the pr or submitting new problems that arise when using spotify-player built from it!

workaround

in an environment with a (somewhat up to date) rust toolchain set up, run the following commands in your home directory:

# build the librespot binary, we need this to generate credentials
git clone https://github.com/librespot-org/librespot.git
cd librespot
cargo build --release --no-default-features
# generate the credentials by running the program we just built
./target/release/librespot --cache ~/.cache/spotify-player/ -j
# Open or copy a link and login to Spotify as usual (this is the new login flow)
...
# cleanup once you've successfully logged in
cd ~
rm -rf ./librespot
# you should now be able to run spotify-player
spotify_player

huge thanks to the original authors and the modification! ❤️

technical details

spotify now requires an oauth2 login flow, which needs to implemented.
the library used for authentication is librespot, the dependency needs to be updated to the latest release which adds support for oauth2.
since that release contains a lot of breaking changes and the login flow in this application needs to be rewritten, this requires a substantial amount of work.
see #570 for the current state/progress made so far on fixing this situation.

@w-lfchen w-lfchen added the bug Something isn't working label Oct 23, 2024
@w-lfchen w-lfchen changed the title [bug] authentication issues [bug] Authentication Issues Oct 23, 2024
@aome510 aome510 pinned this issue Oct 23, 2024
@w-lfchen
Copy link
Contributor Author

@w-lfchen read #581

doesn't exist..?

@Guimarret
Copy link

The workaround worked ty!

@w-lfchen

This comment has been minimized.

@MrGibus
Copy link

MrGibus commented Oct 25, 2024

Used the workaround and spotify reset my password.
If anyone else has this issue you won't be able to rerun unless you delete ~/.cache/spotify-player

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
@MrGibus @Guimarret @w-lfchen and others