-
Notifications
You must be signed in to change notification settings - Fork 217
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
Enable support for OAuth #675
Comments
Same issue i get :
any way to solve this? |
i also have this problem. |
Same problem, got the auth token via librespot, but not sure where to put it so that Raspotify can see it |
I suspect this can be solved by not using a dynamic user through systemd. This way, you will be able to write to raspotify's directory. I won't be able to test this until next week, however. Perhaps you could try it out. Change
to
Then run |
Thanks @kimtore, that worked perfectly! For anyone landing here, below is a summary of the steps I followed to get this working on a Raspberry Pi 4 running Bullseye with Librespot v0.4.2. Note that although I had to compile librespot from source to run it and get the authentication token, I did not need to actually install it again overwriting the release version.
Might need to install Rust if you didn't have it already. Make sure you select the right backend, in my case had to specify alsa using:
After running the
Then run After this, noticed below new lines in the librespot logs: Was also still seeing the Bad Credentials failure message too at this point, as it was still using username/password
|
Great, thanks for detailing the steps! Here are my thoughts.
|
More info has been requested. The issue will be closed shortly if it's not provided. |
Just wanted to comment that you dont need port forwarding for the OAuth flow. You can copy the callback URL returned by spotify (with a 127.0.0.1 address) and use curl to invoke it from the raspberrypi where you executed "librespot --cache <YOUR_CONFIGURATION_PATH> -j" |
Raspotify is just a package
Due Diligence
What can we do to make Raspotify more awesome?
As of librespot-org/librespot#1308 and subsequent PR librespot-org/librespot#1309, Spotify has apparently disabled password auth altogether and forces OAuth for everyone. Please add an option to authenticate with OAuth through
librespot
. Upstreamlibrespot
already supports OAuth with-j
option, somehow I can't figure out which cache dir to use to get it working with Raspotify after successful auth.The text was updated successfully, but these errors were encountered: