# 05 — Authentication, Authorization & Security Model Status: **Normative**. Covers account auth, token model, Subsonic compatibility auth, storage-credential handling, stream-access tokens (used by Chromecast), RBAC, and the threat model. Cross-referenced by `api/openapi.yaml` security schemes and by docs 03/04/06. --- ## 1. Principals & roles | Principal | Description | |-----------|-------------| | **User** | A human account. Roles: `admin` or `member`. | | **Device session** | A refresh-token-backed login of a user on one client (web, Android, Subsonic app). Enumerable & revocable per user. | | **Stream grant** | Short-lived, narrowly scoped token authorizing GETs of specific media (Chromecast receiver, `