vikunja/pkg/modules/auth
Claude 64c3f464ac
feat: add project-scoped API tokens
Add optional project scope to API tokens, allowing tokens to be restricted
to a specific project and optionally its sub-projects. This builds on the
existing API token system by adding two new fields: project_id and
include_sub_projects.

Key changes:
- Database migration adding project_id and include_sub_projects columns
- ProjectScopedAuth wrapper type implementing web.Auth with scope info
- AuthUnwrapper interface for transparent auth type unwrapping
- Scope enforcement in project/task permission checks and list queries
- Middleware resolves scoped project IDs (with recursive CTE for sub-projects)
- Frontend: project selector in token creation form, scope display in list
- Tests for scope resolution, permission enforcement, and token creation

https://claude.ai/code/session_015JjPNeSkwxYQNCeMf2PYTi
2026-03-22 11:28:40 +00:00
..
ldap fix: use caller's session in LDAP syncUserGroups to avoid nested transactions 2026-02-25 11:03:02 +01:00
openid fix: eliminate nested database sessions to prevent table locks 2026-02-25 11:03:02 +01:00
auth.go feat: add project-scoped API tokens 2026-03-22 11:28:40 +00:00