Closed hecht0r closed 1 month ago
You need to request a token with the correct scopes, they are listed here: https://github.com/devgianlu/go-librespot/blob/b9bc8c87f1b63cdffb6977ecd879d11db3373a78/session/session.go#L101-L126
If that feats you, the interactive
login mode is also available which will handle the OAuth2 flow for you.
Interactive unfortunately doesn't work.
FATA[0000] unknown credentials: interactive
config.yml looks like this:
device_name: go-librespot
credentials:
type: interactive
i am using the latest prebuild executable go-librespot_linux_arm64.tar.gz
This feature has not been released yet, to test it you need to compile yourself or wait for the next release.
Looking forward to see the interactive feature released. It would be nice if the redirect url will be configurable (i.e. a hostname instead of 127.0.0.1).
It would be nice if the redirect url will be configurable (i.e. a hostname instead of 127.0.0.1).
We are using the client ID used by Spotify in its official client, so I am guessing they have locked it down to 127.0.0.1.
It would be nice if the redirect url will be configurable (i.e. a hostname instead of 127.0.0.1).
We are using the client ID used by Spotify in its official client, so I am guessing they have locked it down to 127.0.0.1.
Hmm, ok. If they indeed locked it down, it means the browser with the login window needs to run on the same host as librespot?
It would be nice if the redirect url will be configurable (i.e. a hostname instead of 127.0.0.1).
We are using the client ID used by Spotify in its official client, so I am guessing they have locked it down to 127.0.0.1.
Hmm, ok. If they indeed locked it down, it means the browser with the login window needs to run on the same host as librespot?
You can copy the login URL go-librespot gives you into your browser, complete the signin and when it redirects you to 127.0.0.1 you copy that and do curl "..."
on the device where go-librespot runs. It is annoying, but you need to do it only once.
Hi,
while using go-librespot with zeroconf works like a charm i want to use stored credentials. With zeroconf i have to select go-librespot as device manually in my spotify client. After that it works perfectly.
I tried to get my access_token via
and put it in my config.yml like this:
After starting go-libresport i get error
FATA[0001] failed running with username and spotify token error="failed authenticating accesspoint with username and spotify token: failed authenticating: failed login: BadCredentials"
What am I doing wrong? Thank you for any help