navidrome/core/apiauth
Deluan 45d8a7724d test(api): share API v1 test helpers and check scopes in Go
Move the end-to-end call/setup/mint helpers to a suite-level test client
and the apiauth login/mustMint helpers to package level. Replace the
hardcoded vacuum x-scope enum with a Go test that every known scope is
a valid spec Scope; the gate already rejects unknown x-scope values.
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 refactor(api): tighten API v1 auth internals and first-admin setup 2026-09-28 20:06:28 -04:00
cache_test.go refactor(api): tighten API v1 auth internals and first-admin setup 2026-09-28 20:06:28 -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 test(api): share API v1 test helpers and check scopes in Go 2026-09-28 20:06:28 -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): tighten API v1 auth internals and first-admin setup 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 refactor(api): tighten API v1 auth internals and first-admin setup 2026-09-28 20:06:28 -04:00
service_session_test.go test(api): share API v1 test helpers and check scopes in Go 2026-09-28 20:06:28 -04:00
service_test.go test(api): share API v1 test helpers and check scopes in Go 2026-09-28 20:06:28 -04:00
signer.go refactor(api): tighten API v1 auth internals and first-admin setup 2026-09-28 20:06:28 -04:00
signer_test.go refactor(api): reuse existing helpers in API v1 auth 2026-09-28 20:06:28 -04:00