OpenSubsonic: core (auth, system, browsing) #12

Merged
squid merged 1 commit from feat/opensubsonic-core into main 2026-11-16 08:32:37 +00:00
Owner

Closes #8

Other apps can now connect to /rest and browse my music. A call logs in with the password of a device (an apiKey, Subsonic's token u/t/s, or u/p). The account password is not accepted there, and a device password does not open /api/v1.

  • Answers in JSON (f=json) or XML, with or without .view, GET or form POST.
  • ping, getLicense, getOpenSubsonicExtensions (no login), tokenInfo, getMusicFolders, getArtists, getArtist, getAlbum, getSong, getGenres.
  • A device that is taken back stops working at once. The use of a device is noted (last_used_at).
  • Checked: Go tests with -race on SQLite, storage/api/devices/opensubsonic on PostgreSQL, and on a copy of my real library (1156 artists in 0.17 s) with an independent Subsonic client library, with token and with API key.
Closes #8 Other apps can now connect to `/rest` and browse my music. A call logs in with the password of a device (an `apiKey`, Subsonic's token `u`/`t`/`s`, or `u`/`p`). The account password is not accepted there, and a device password does not open `/api/v1`. - Answers in JSON (`f=json`) or XML, with or without `.view`, GET or form POST. - `ping`, `getLicense`, `getOpenSubsonicExtensions` (no login), `tokenInfo`, `getMusicFolders`, `getArtists`, `getArtist`, `getAlbum`, `getSong`, `getGenres`. - A device that is taken back stops working at once. The use of a device is noted (`last_used_at`). - Checked: Go tests with -race on SQLite, storage/api/devices/opensubsonic on PostgreSQL, and on a copy of my real library (1156 artists in 0.17 s) with an independent Subsonic client library, with token and with API key.
/rest speaks the OpenSubsonic API (Subsonic 1.16.1) so that other apps can browse
the music of a server. A call logs in with the password of a device: an apiKey,
Subsonic's token (u, t, s) or the password itself (u, p). The account password is
never accepted there.

- devices: ByKey, ByToken, ByPassword and the note of last use
- opensubsonic package: JSON and XML answers, ping, getLicense,
  getOpenSubsonicExtensions, tokenInfo, getMusicFolders, getArtists, getArtist,
  getAlbum, getSong, getGenres
- storage.SubsonicRepo: year, genres, size, bitrate, suffix and added date
squid merged commit 90d1b7949f into main 2026-11-16 08:32:37 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
squid/sonda!12
No description provided.