1
0

chore(web): use web auth factory directly

(cherry picked from commit 9b01666ec6c41f5487cfc6c381b3937f1fe53a16)
This commit is contained in:
kolaente
2024-09-01 19:25:24 +02:00
parent 01c4f1fc0e
commit fe44b7d473
7 changed files with 10 additions and 17 deletions

View File

@ -60,7 +60,6 @@ import (
"code.vikunja.io/api/pkg/config"
"code.vikunja.io/api/pkg/log"
"code.vikunja.io/api/pkg/models"
"code.vikunja.io/api/pkg/modules/auth"
"code.vikunja.io/api/pkg/modules/auth/openid"
"code.vikunja.io/api/pkg/modules/background"
backgroundHandler "code.vikunja.io/api/pkg/modules/background/handler"
@ -76,7 +75,6 @@ import (
apiv1 "code.vikunja.io/api/pkg/routes/api/v1"
"code.vikunja.io/api/pkg/routes/caldav"
"code.vikunja.io/api/pkg/version"
"code.vikunja.io/api/pkg/web"
"code.vikunja.io/api/pkg/web/handler"
"github.com/getsentry/sentry-go"
@ -119,9 +117,6 @@ func NewEcho() *echo.Echo {
e.Validator = &CustomValidator{}
// Handler config
handler.SetAuthProvider(&web.Auths{
AuthObject: auth.GetAuthFromClaims,
})
handler.SetLoggingProvider(log.GetLogger())
return e