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

"authentication failed" #23

Open
nolanm1122 opened this issue Mar 15, 2020 · 6 comments
Open

"authentication failed" #23

nolanm1122 opened this issue Mar 15, 2020 · 6 comments

Comments

@nolanm1122
Copy link

I attempted to run the main.go with my personal username and password as flags, but program throws "authentication failed" error every time. I know these credentials are correct and that it's parsing the flags properly and passing them to librespot.Login function. I've also tried with another valid account and gotten same response. Must be an issue with how login is handled, etc.

@drunlade
Copy link
Contributor

drunlade commented Apr 8, 2020

Not that I have a solution for you, but I can say "It works just fine for me", so I suspect it's something you are doing wrong.

@winterscar
Copy link

Just throwing my experience in as well, I get the same issue..

@joonas-fi
Copy link

Same issue: login failed with username/password. I added a "vote": please add 👍 to issue top if username+password authentication fails for you too!

@joonas-fi
Copy link

Seems to be about using a free account. After I updated to Premium, it started working.

This is based on librespot, and it says:

Note: librespot only works with Spotify Premium. This will remain the case. We will not support any features to make librespot compatible with free accounts, such as limited skips and adverts.

See also: librespot-org/librespot#862

@corny
Copy link

corny commented Apr 16, 2022

This issue can be closed.

@joonas-fi
Copy link

Pro-tip: if the auth blob doesn't work for you, you can generate the auth blob in some other software (like the Rust version of librespot which seems very actively maintained) and steal its auth blob for use in librespot-golang!

If you use the Rust librespot, you can run:

$ target/release/librespot --name foobar --username <yourUsername>

it asks for your password, and then you can find the auth blob in cache/credentials.json under key auth_data. Make sure to base64-decode the value and then use it as blob.bin content (don't include newline) as here:

blob := flag.String("blob", "blob.bin", "spotify auth blob")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants