navidrome/core/apiauth
Deluan 0628721006 refactor(api): simplify API v1 auth after dropping access tokens
- Fold Allowed into Expand and drop the ErrInsufficientScope sentinel; the
  gate's scopeError is now the only source of insufficient_scope.
- Replace the two-value authKind with a public flag, inline loadUser, and
  pass the grant to touch.
- Read a declared request body once before validation, so the JSON checks
  and the handler no longer depend on kin-openapi restoring the exact bytes.
- Merge the Service tests into one file and drop specs that only covered
  the removed liveness cache. The revoked-during-password-change spec now
  revokes after the gate authenticates, so it reaches ChangePassword again.

Signed-off-by: Deluan <deluan@navidrome.org>
2026-09-28 21:47:16 -04:00
..
apiauth_suite_test.go feat(api): add API v1 scope rules and grant secrets 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 refactor(api): simplify API v1 auth after dropping access tokens 2026-09-28 21:47:16 -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 refactor(api): simplify API v1 auth after dropping access tokens 2026-09-28 21:47:16 -04:00
scopes_test.go refactor(api): simplify API v1 auth after dropping access tokens 2026-09-28 21:47:16 -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 refactor(api): simplify API v1 auth after dropping access tokens 2026-09-28 21:47:16 -04:00
service_test.go refactor(api): simplify API v1 auth after dropping access tokens 2026-09-28 21:47:16 -04:00