feat(identity): enforce shared session and browser request security
This commit is contained in:
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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user