feat(identity): enforce shared session and browser request security

This commit is contained in:
TakuyaYagam1 committed 2026-10-07 11:33:40 +03:00
1 parent 7df521bd89
commit 86f562f5b6
23 files changed
+430 -121

No files matched your search

@@ -36,7 +36,10 @@ func newConfirmationRouter(t *testing.T, confirmation v1.EmailConfirmation) http
t.Helper()
logger := slog.New(slog.DiscardHandler)
healthHandler := newTestHealthHandler(func(context.Context) error { return nil })
identityHandler := v1.NewIdentityHandler(nil, v1.WithEmailConfirmation(confirmation, "https://app.example"))
identityHandler := v1.NewIdentityHandler(nil,
v1.WithEmailConfirmation(confirmation),
v1.WithPublicOrigin("https://app.example"),
)
handler := v1.NewHandler(healthHandler, problem.NewResponder(logger), v1.WithIdentity(identityHandler))
return newTestRouterWithAPI(t, healthHandler, handler, logger)
}