diff options
| author | Clément Michaud <clement.michaud34@gmail.com> | 2020-02-01 13:54:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-01 13:54:50 +0100 |
| commit | ea9b408b70f67a828acae47399330b439daf3a19 (patch) | |
| tree | d154d1b4d4660b26bf4694786b969bb1d95a358c /internal/server/server.go | |
| parent | 05592cbe2d278d3f8efa5ae34df210084387ab7a (diff) | |
[FIX] Fix default redirection URL not taken into account (#600)
* Remove unused mongo docker-compose file.
* Default redirection URL was not taken into account.
* Fix possible storage options in config template.
* Remove useless checks in u2f registration endpoints.
* Add default redirection url in config of duo suite.
* Fix log line in response handler of 2FA methods.
* Fix integration tests.
Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
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 { |
