Latest update (v1.2.29): authentication issues? (Last.fm & Spotify)
-
Hello, sorry if this is a very smooth-brained post, but I'm very confused by the changes in the latest update.
I use authentication for last.fm and Spotify, and have been logged out of both due to the changes, and can't figure out what to put in the Client ID and Client secret fields.Separating this by last.fm issues and Spotify issues:
Last.fm
I've tried putting my email/username into the Client ID field and my password in the Client secret field, but the webpage I get sent to shows this:

The URL in this specific instance is https://www.last.fm/api/auth?api_key=username&cb=http://localhost:45305/ - is this the intended behaviour?
(note: running Strawberry via CLI withstrawberry --verboseshows no errors, warnings or any other kind of feedback in this instance.)Spotify
No matter what I put into the Client ID and Client secret fields, it always returnsERROR SpotifyService:259 "Missing Spotify client ID and/or client secret"and I am never redirected to the Spotify website.
If there's an API key I need to fish out from somewhere and put in these fields, please let me know because the services themselves don't show me anything (unless I'm just real bad at searching :^) )
Strawberry is my music player of choice for both local and streamed tracks, so I'm very happy to help troubleshoot any issues and get the whole setup working again! Thank you for your continued hard work on this wonderful music player. ^^
Additional edit:
I just noticed that there's a place to log in for Genius too, so I tried that and also get a webpage saying "Invalid Authorization". The URL is https://api.genius.com/oauth/authorize?client_id=username&code_challenge=LW6f0eupn2UFYo47mgoaIidHdcLlqC8--LGQVnxy44Q&code_challenge_method=S256&redirect_uri=https%3A%2F%2Foauth.strawberrymusicplayer.org%2F&response_type=code&scope=me&state=qwx1CBcGJHvPC6wtoXjhLRSbsvZEVIpM-36917If this is something I should add as an issue in the GitHub repo, let me know and I'm happy to open an issue there too

-
@jasmint
How did you install or build strawberry? If strawberry is built from the official .tar.xz tarball, or you use one of the official packages (rpm, deb, exe, dmg, etc), the API credentials should be included by default with a checkbox called "Use custom credentials" which allows to override it, if you don't see that checkbox, then it means Strawberry was built from source directly from git, and not the official tarball in that case you either need to copy apicredentials.h from the .tar.xz file into src before building, or you need to register your own credentials.
You can do this for Spotify here: https://developer.spotify.com/dashboard (Redirect URI need to be set to https://oauth.strawberrymusicplayer.org/).
For Genius here: https://genius.com/api-clients (Redirect URI set to https://oauth.strawberrymusicplayer.org/)
Last.fm here: https://www.last.fm/api (Callback URL should be blank). -
When you enter client ID and secret, you need to click Apply before you click login for the credentials to actually be in use, at least for Spotify.