mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-24 19:09:47 +01:00
feat(api): add API v1 login, setup, token, grant and password endpoints
Adds the seven auth operations to the spec (createAccessToken, listGrants, revokeGrant and logout in core; login, setupFirstAdmin and changePassword in the password module), the bearerAuth/grantAuth schemes, and vacuum rules requiring explicit security and a known x-scope. The strict handlers sit on core/apiauth and are covered end to end against a real SQLite database. The first operations with parameters make the generated code import github.com/oapi-codegen/runtime. An oapi-codegen overlay renames the shared offset/limit parameter types, since a generated Offset clashes with Ginkgo's dot-imported Offset in this package's tests; the published spec is unchanged.
This commit is contained in:
parent
4f2d350757
commit
294c1a9a6a
34 changed files with 3741 additions and 33 deletions
3
api/openapi/components/headers/WWWAuthenticate.yaml
Normal file
3
api/openapi/components/headers/WWWAuthenticate.yaml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
description: 'RFC 6750 Bearer challenge, for example `Bearer error="insufficient_scope", scope="read"`.'
|
||||
schema:
|
||||
type: string
|
||||
Loading…
Add table
Add a link
Reference in a new issue