feat(auth): add argon2id passwords, sessions, rate limiter, authorization and audit builders

- feat(auth): add argon2id passwords, sessions, rate limiter, authorization and audit builders
- feat(cli): add check and audit commands
- feat(api): add api framework, login, page routes and account, user, delegation and audit handlers
- test(auth): cover passwords, sessions, rate limiter, authorization and audit builders
- test(api): cover the api framework, sessions, client origin, headers and cross-origin refusal
- test(api): cover account, user, delegation and audit handlers and the authorization matrix
- test(ui): cover login, logout, page routes and the page authorization matrix
This commit is contained in:
bryanpedini committed 2026-11-19 15:46:12 +01:00
1 parent 23bec143e3
commit 99fa5de747
28 files changed
+6591 -243

No files matched your search

+2 -2
View File
@@ -14,9 +14,9 @@ type routeRegistrar func(s *WebServer, r *mux.Router)
type handlerMiddleware func(s *WebServer, next http.Handler) http.Handler
var appRouteRegistrars = []routeRegistrar{}
var appRouteRegistrars = []routeRegistrar{registerAppRoutes}
var appMiddlewares = []handlerMiddleware{}
var appMiddlewares = []handlerMiddleware{requestLogMiddleware, securityHeadersMiddleware, crossOriginMiddleware}
func (s *WebServer) Handler() http.Handler {
r := mux.NewRouter()