Melora Hugues
ce8bd4ee7c
Start the process of replacing dex with zitadel, this commit is absolutely not prod-ready, basically we just added zitatel, and the necessary elements to make it work to at least getting a client from the DB - replace logrus with zap - start our own storage for the users - instanciate zitaled on start - allow getting client using the ID from the DB
14 lines
194 B
Go
14 lines
194 B
Go
package middlewares
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"go.uber.org/zap"
|
|
)
|
|
|
|
func WithLogger(handler http.Handler, l *zap.SugaredLogger) http.Handler {
|
|
return &LoggerMiddleware{
|
|
l: l,
|
|
h: handler,
|
|
}
|
|
}
|