mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 02:24:24 +00:00
Docs: Update CODEMAP.md
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
e93ceba659
commit
91c7052c1f
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
PhotoPrism — Backend CODEMAP
|
||||
|
||||
**Last Updated:** October 28, 2025
|
||||
**Last Updated:** October 29, 2025
|
||||
|
||||
Purpose
|
||||
- Give agents and contributors a fast, reliable map of where things live and how they fit together, so you can add features, fix bugs, and write tests without spelunking.
|
||||
|
|
@ -87,6 +87,7 @@ Database & Migrations
|
|||
|
||||
AuthN/Z & Sessions
|
||||
- Session model and cache: `internal/entity/auth_session*` and `internal/auth/session/*` (cleanup worker).
|
||||
- `internal/entity/auth_session_jwt.go` builds transient sessions from portal-issued JWTs; used by `internal/api/api_auth_jwt.go` when nodes authenticate portal requests.
|
||||
- ACL: `internal/auth/acl/*` — roles, grants, scopes; use constants; avoid logging secrets, compare tokens constant‑time; for scope checks use `acl.ScopePermits` / `ScopeAttrPermits` instead of rolling your own parsing.
|
||||
- OIDC: `internal/auth/oidc/*`.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue