diff options
Diffstat (limited to 'internal/server/server.go')
| -rw-r--r-- | internal/server/server.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/server/server.go b/internal/server/server.go index 40ce1b8de..4cf62bcdd 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -61,7 +61,7 @@ func StartServer(configuration schema.Configuration, providers middlewares.Provi router.POST("/api/secondfactor/totp/identity/finish", autheliaMiddleware( middlewares.RequireFirstFactor(handlers.SecondFactorTOTPIdentityFinish))) router.POST("/api/secondfactor/totp", autheliaMiddleware( - middlewares.RequireFirstFactor(handlers.SecondFactorTOTPPost))) + middlewares.RequireFirstFactor(handlers.SecondFactorTOTPPost(&handlers.TOTPVerifierImpl{})))) // U2F related endpoints router.POST("/api/secondfactor/u2f/identity/start", autheliaMiddleware( @@ -74,8 +74,9 @@ func StartServer(configuration schema.Configuration, providers middlewares.Provi router.POST("/api/secondfactor/u2f/sign_request", autheliaMiddleware( middlewares.RequireFirstFactor(handlers.SecondFactorU2FSignGet))) + router.POST("/api/secondfactor/u2f/sign", autheliaMiddleware( - middlewares.RequireFirstFactor(handlers.SecondFactorU2FSignPost))) + middlewares.RequireFirstFactor(handlers.SecondFactorU2FSignPost(&handlers.U2FVerifierImpl{})))) // Configure DUO api endpoint only if configuration exists if configuration.DuoAPI != nil { |
