Implement owner setup and browser authentication sessions
Some checks failed
CI / Backend (push) Failing after 1s
CI / Frontend (push) Successful in 13s
CI / Contracts and repository policy (push) Failing after 3s
CI / Container (push) Has been skipped

This commit is contained in:
Elijah 2026-07-16 19:45:40 -07:00
parent 077cf7601a
commit 715423ab8e
21 changed files with 2185 additions and 14 deletions

View file

@ -10,6 +10,7 @@ import (
"syscall"
"time"
"drive.local/drivev2/internal/adapters/authn"
"drive.local/drivev2/internal/adapters/postgres"
"drive.local/drivev2/internal/adapters/webassets"
"drive.local/drivev2/internal/application"
@ -67,7 +68,13 @@ func serve() error {
defer store.Close()
systemService := application.NewSystemService(store, version)
server := httpapi.NewServer(cfg, logger, systemService, webassets.New(cfg.WebRoot))
authenticationService := application.NewAuthenticationService(
store,
authn.NewPasswordHasher(),
authn.CredentialGenerator{},
authn.SystemClock{},
)
server := httpapi.NewServer(cfg, logger, systemService, authenticationService, webassets.New(cfg.WebRoot))
ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
defer stop()