navidrome/core/apiauth
Deluan 406a2e9cf4 fix(api): never widen the scopes an access token claims
Authenticate ran token claims through Expand, so a token claiming `all`
would have gained every known scope. Only a holder of the signing key
could mint one, but tokens should carry concrete scopes only. Claims now
go through Allowed, which keeps known scopes (and admin only for admins)
and never expands `all`.
2026-09-28 20:06:28 -04:00
..
apiauth_suite_test.go feat(api): add API v1 scope rules and grant secrets 2026-09-28 20:06:27 -04:00
cache.go feat(api): add grant liveness cache 2026-09-28 20:06:27 -04:00
cache_test.go feat(api): add grant liveness cache 2026-09-28 20:06:27 -04:00
context.go feat(api): add API v1 login, setup, grant resolution and token minting 2026-09-28 20:06:27 -04:00
credentials.go feat(api): add API v1 login, setup, grant resolution and token minting 2026-09-28 20:06:27 -04:00
credentials_test.go feat(api): add API v1 login, setup, grant resolution and token minting 2026-09-28 20:06:27 -04:00
db_test.go feat(api): add API v1 login, setup, grant resolution and token minting 2026-09-28 20:06:27 -04:00
export_test.go feat(api): add API v1 login, setup, grant resolution and token minting 2026-09-28 20:06:27 -04:00
scopes.go fix(api): never widen the scopes an access token claims 2026-09-28 20:06:28 -04:00
scopes_test.go fix(api): never widen the scopes an access token claims 2026-09-28 20:06:28 -04:00
secret.go feat(api): add API v1 scope rules and grant secrets 2026-09-28 20:06:27 -04:00
secret_test.go feat(api): add API v1 scope rules and grant secrets 2026-09-28 20:06:27 -04:00
service.go fix(api): never widen the scopes an access token claims 2026-09-28 20:06:28 -04:00
service_session_test.go fix(api): never widen the scopes an access token claims 2026-09-28 20:06:28 -04:00
service_test.go fix(api): retry the signing-key load after a failure and drop the password from issued grants 2026-09-28 20:06:27 -04:00
signer.go fix(api): use a 256-bit API v1 signing key 2026-09-28 20:06:28 -04:00
signer_test.go fix(api): use a 256-bit API v1 signing key 2026-09-28 20:06:28 -04:00