Skip to main content

Automation and compatibility credentials

Imported component documentation. Source: melodee-project/melodee-auth-ui at commit 0bf9bd04697609fc3d8b82eb933b1d1d29e84059. Version 2026.11.0-rc.0. License MIT. Status: A0–A10 implemented and verified on a disposable real API 1.0.0 stack; not published, tagged or deployed. This is the component's committed documentation, not proof of a distribution release or production qualification.

Melodee distinguishes interactive sessions from scoped automation credentials and player compatibility credentials. The Auth UI never presents one as another.

Automation credentials​

/auth/account/automation lists name, purpose, scopes, expiry, revoked state and last use. Only metadata is listed; the secret is never re-displayed.

Creation:

  1. choose a name and purpose;
  2. choose the shortest practical lifetime (server maximum 366 days);
  3. select the smallest scope set;
  4. confirm a recent-auth step-up if the API asks;
  5. copy the one-time secret from the reveal dialog and store it in the script's secret manager.

The secret exists only in the reveal dialog's component state. Closing the dialog or leaving the page clears it. It is never put in local/session storage, IndexedDB, a URL, telemetry or a log. Losing it means revoke and reissue.

Scopes are exactly the API's published vocabulary:

ScopeMeaningElevated
catalog.readRead catalog dataNo
catalog.favorite.writeChange favoritesNo
playback.reportReport play eventsNo
reporting.readRead reportsYes
operations.readRead operational dataYes
operations.writeChange operational controlsYes
catalog.admin.readRead catalog administrationYes
catalog.admin.writeChange catalog administrationYes

A credential can never exceed the account's grants. The API may refuse an elevated scope if the account lacks the matching capability; the UI states that instead of implying capability.

Revocation is immediate. Automation credentials cannot mint other credentials or manage the account. They are not interactive sessions and do not produce cookies.

Compatibility credentials​

/auth/account/compatibility creates per-device credentials for the OpenSubsonic or Jellyfin adapters. The reveal dialog shows the username and one-time secret; both are cleared when it closes. These credentials authenticate a player, never a browser session, and can be revoked immediately.

OpenSubsonic supports apiKey=<secret> or u=<username>&p=<secret>; token (t/s) auth is not offered because the API stores only a digest. Configure the player with the generated values and the public Melodee origin. The front door must proxy /rest/ (and the other compatibility paths) to the API.