Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app.go
diff options
context:
space:
mode:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2021-09-28 18:38:16 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2021-09-28 18:38:16 +0300
commit5f971520a50d3bd7b3b565a673c185b00f0df680 (patch)
treef3200b170ec06b35841e6a5564bad5e278536bd0 /app.go
parent08d70aef345f1811f13cc990529f5114ccf3a92e (diff)
refactor: move acl to auth package and update function signature
Diffstat (limited to 'app.go')
-rw-r--r--app.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/app.go b/app.go
index 4297a7a2..e6fd54dd 100644
--- a/app.go
+++ b/app.go
@@ -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