feat: switch Spotify auth to official Client Credentials Flow

Replaces the broken open.spotify.com/get_access_token scrape with
accounts.spotify.com/api/token (Basic auth, client_credentials grant).
Adds SPOTIFY_CLIENT_ID/SECRET to config, docker-compose, and .env.example.
Health endpoint now reports spotify.configured; frontend disables the
importer and shows a setup guide when credentials are missing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
HoneyandClaude Sonnet 4.6 committed 2026-05-09 22:57:01 +02:00
1 parent 7c1c444bf2
commit 468827571a
5 files changed
+77 -13

No files matched your search

+7
View File
@@ -22,3 +22,10 @@ DOWNLOAD_BACKEND=auto
# flac - FLAC 16-bit / 44.1 kHz
# hi-res - FLAC 24-bit / 96 kHz
SQUID_QUALITY=mp3
# Spotify Importer (optional — free, no Premium needed)
# 1. Go to https://developer.spotify.com/dashboard and create an app
# 2. Set any name, Redirect URI: http://localhost
# 3. Copy the Client ID and Client Secret below
SPOTIFY_CLIENT_ID=
SPOTIFY_CLIENT_SECRET=