Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 3 of 3

Hybrid View

  1. #1
    Junior Member
    Join Date
    Nov 2016
    Posts
    13

    Pre-authenticate Spotty plugin in Docker deployment

    Hi all,

    I want to create an LMS Docker build-and-run that works "out of the box" without having to add additional configuration through the UI between container restarts. In particular, I'm looking at Spotty, which has an authentication step in the UI where you enter username and password. I recall that it says in one of the Spotty forum posts that the password isn't stored anywhere in LMS and indeed from wandering through the Spotty configuration files I can't find either a password or any recognisable auth tokens. I also found some posts with DEBUG log output of running the `spotty-x86_64` binary and I can't see anything in those command lines that contain tokens or passwords either.

    I suppose I'm hoping that I can derive a token (once) and keep it somewhere safe, and then inject it into my container on runtime perhaps as an environment variable. I'm just not sure how possible this is - I would expect a Spotify token to expire but obviously Spotty manages this somehow without storing a password. Can anybody suggest any further docs or reverse engineering I can try to figure this out?

    Thanks,

    Peter

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,366

    Pre-authenticate Spotty plugin in Dockerdeployment

    > I want to create an LMS Docker build-and-run that works "out of the box"
    > without having to add additional configuration through the UI between
    > container restarts.


    Why don't you store the prefs folder outside the container?

    > I suppose I'm hoping that I can derive a token (once) and keep it
    > somewhere safe, and then inject it into my container on runtime perhaps
    > as an environment variable.


    It's stored in the cache/spotty folder. You could certainly back this up
    and restore from somewhere. But as I said: I'd rather persist the cache
    and prefs folder outside the container.

    --

    Michael

  3. #3
    Junior Member
    Join Date
    Nov 2016
    Posts
    13
    Quote Originally Posted by mherger View Post

    Why don't you store the prefs folder outside the container?
    Perfect - thanks for the suggestion.

    Peter

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •