navidrome/core/apiauth
Deluan a41e656706 refactor(api): reuse existing helpers in API v1 auth
Use gg.V, slice.Map, chi's RequestSize, core/auth's encryption key and
ClientIPRateLimiter instead of local copies; share the grant idle expiry
constant and a Grant.LastActivity helper; pass last use as a time value.
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 refactor(api): reuse existing helpers in API v1 auth 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 refactor(api): reuse existing helpers in API v1 auth 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