Audible: Fix authentication for new API token format (#2875)
authorZtripez <ztripez@vonmatern.org>
Mon, 29 Dec 2025 12:18:22 +0000 (13:18 +0100)
committerGitHub <noreply@github.com>
Mon, 29 Dec 2025 12:18:22 +0000 (13:18 +0100)
commit2f951299065116b7d3e9f1d5ac8694ed399b5c4e
treeeec15a343388b8310effc44b334efc47bf6cc283
parent05c0ddd63c3597b32c25034045f97b2789e14022
Audible: Fix authentication for new API token format (#2875)

* Fix Audible authentication for new API token format

- Add compatible token refresh handling for new actor_access_token format
- Validate signing auth availability (preferred, stable auth method)
- Accept multiple authorization code parameter names in callback URL
- Improve error handling and diagnostic messages

* Use shared http_session instead of creating new client

- Modify refresh_access_token_compat to accept http_session parameter
- Update to use aiohttp ClientSession (from mass.http_session)
- Remove unnecessary httpx.AsyncClient creation

---------

Co-authored-by: Ztripez von Matérn <ztripez@bobby.se>
music_assistant/providers/audible/__init__.py
music_assistant/providers/audible/audible_helper.py