Enable the authority middleware in the server

This commit is contained in:
Mariano Cano 2022-04-26 12:55:28 -07:00
parent 9628fa3562
commit 900a640f01

View file

@ -279,6 +279,10 @@ func (ca *CA) Init(cfg *config.Config) (*CA, error) {
insecureHandler = logger.Middleware(insecureHandler)
}
// Add authority handler
handler = auth.Middleware(handler)
insecureHandler = auth.Middleware(insecureHandler)
ca.srv = server.New(cfg.Address, handler, tlsConfig)
// only start the insecure server if the insecure address is configured