epoupon / lms

Lightweight Music Server. Access your self-hosted music using a web interface.
http://lms-demo.poupon.dev
GNU General Public License v3.0
1.15k stars 62 forks source link

Can't connect to Subsonic API after 3.61.0 #564

Closed variasdesign closed 1 day ago

variasdesign commented 1 day ago

Greetings. I've been using LMS for a while now, it's a great piece of software. However, since the last update (3.61.0) I've been unable to connect to my server using the OpenSubsonic API on Android through apps like Ultrasonic or Tempo. I've noticed a change in the API authentication, now requiring an API key. Usually, I connect to my server using plaintext user and password credentials. The API is throwing the following errors:

I've tried using the generated API key from my user panel as password, as well as my old one. Also, I've refreshed my config file with the new parameters, thinking setting api-subsonic-support-user-password-auth = true would let me log in as usual, but it had no effect whatsoever. The API specification says not to pass an user parameter in the request. but Ultrasonic and Tempo won't let me send an empty username for testing.

Thank you and regards.

epoupon commented 1 day ago

Hello! Indeed the user parameter is forbidden, but only if the API key is provided using the apiKey parameter.

When using user/password, you just have to put your username as before and put your API key as the password. Are you sure you saved the settings when you generated the API key in the settings page? The layout is quite misleading unfortunately.

variasdesign commented 1 day ago

Yep, that was it, silly me. Thanks for your help and your work!