firefrei / docker-snapcast

Snapcast multi-room audio streaming with Airplay (1&2), Spotify and HTTPS support enabled. Based on Alpine.
19 stars 6 forks source link

Rebuild docker container to support Spotify OAUTH2 #15

Closed nullmonk closed 1 month ago

nullmonk commented 1 month ago

Librespot has added OAUTH2 support. Please rebuild the docker container with the new version.

firefrei commented 1 month ago

Done 👌🏻

nullmonk commented 1 month ago

Thank you!!

dekiesel commented 2 weeks ago

@firefrei , Thank you! Would you mind updating the documentation? I am not sure how to use oauth with your excellent container. Thank you very much!

firefrei commented 1 week ago

@dekiesel I haven't tried out Librespot with OAUTH2 until now.

Did anybody go through the authentication steps with the Librespot libary and can summarize it?

dekiesel commented 1 week ago

@firefrei, sorry, I actually forgot about this comment. It works for me with oauth like this:

In your snapserver.conf:

source = spotify:///librespot?name=Spotify&devicename=Snapcast&bitrate=320&cache=/var/cache/librespot&cache-size-limit=1G&wd_timeout=7800&access-token=<YOUR_TOKEN_HERE>

To get the token click on this link and reveal your token image

It is possible that you need to create an app first (I already had one so I am not sure): Top right corner->your username->dashboard->create app (make sure to give it Web SDK permissions)