diff options
author | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-09-28 18:38:16 +0300 |
---|---|---|
committer | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-09-28 18:38:16 +0300 |
commit | 5f971520a50d3bd7b3b565a673c185b00f0df680 (patch) | |
tree | f3200b170ec06b35841e6a5564bad5e278536bd0 /app.go | |
parent | 08d70aef345f1811f13cc990529f5114ccf3a92e (diff) |
refactor: move acl to auth package and update function signature
Diffstat (limited to 'app.go')
-rw-r--r-- | app.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -248,10 +248,10 @@ func (a *theApp) buildHandlerPipeline() (http.Handler, error) { if !a.config.General.DisableCrossOriginRequests { handler = corsHandler.Handler(handler) } - handler = acl.NewMiddleware(handler, a.Auth) + handler = a.Auth.AuthorizationMiddleware(handler) handler = a.auxiliaryMiddleware(handler) - handler = auth.NewMiddleware(handler, a.Auth, a.source) - handler = acme.NewMiddleware(handler, a.AcmeMiddleware) + handler = a.Auth.AuthenticationMiddleware(handler, a.source) + handler = a.AcmeMiddleware.AcmeMiddleware(handler) handler, err := logging.AccessLogger(handler, a.config.Log.Format) if err != nil { return nil, err |