feat(identity): add server sessions and audited mail recovery
This commit is contained in:
1 parent
20c03288d6
commit
4ee53d9a74
58 files changed
+5359
-567
No files matched your search
@@ -39,7 +39,7 @@ func initialize(
|
||||
wire.Bind(new(inbound.Readiness), new(*health.Readiness)),
|
||||
wire.Bind(new(httpmiddleware.RequestMetrics), new(*metrics.Metrics)),
|
||||
wire.Bind(new(apiadapter.Handler), new(*v1.Handler)),
|
||||
wire.Bind(new(apiadapter.SecurityHandler), new(*v1.DenyAllSecurity)),
|
||||
wire.Bind(new(apiadapter.SecurityHandler), new(*v1.SessionSecurity)),
|
||||
newReadiness,
|
||||
metrics.New,
|
||||
newHealthHandler,
|
||||
@@ -47,7 +47,7 @@ func initialize(
|
||||
newAPIHandler,
|
||||
newTrustedProxies,
|
||||
newIdentityHandler,
|
||||
v1.NewDenyAllSecurity,
|
||||
newSessionSecurity,
|
||||
httpadapter.NewRouter,
|
||||
newOutboxRelay,
|
||||
newEventConsumers,
|
||||
@@ -60,6 +60,10 @@ func initialize(
|
||||
return nil, nil, nil
|
||||
}
|
||||
|
||||
func newSessionSecurity(identityHandler *v1.IdentityHandler) *v1.SessionSecurity {
|
||||
return identityHandler.SessionSecurity()
|
||||
}
|
||||
|
||||
func newHealthHandler(readiness inbound.Readiness, config config.Config) *v1.HealthHandler {
|
||||
return v1.NewHealthHandler(readiness, config.ReadinessTimeout)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user