From e532ab31efb58a9552381b19c483c65d1d7e560b Mon Sep 17 00:00:00 2001 From: Mmx <36563672+Mmx233@users.noreply.github.com> Date: Sun, 27 Apr 2025 19:58:09 +0800 Subject: [PATCH] fix: remove auth middleware for authn login (#8407) --- server/router.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/router.go b/server/router.go index 2dd6ee88..09a0bb44 100644 --- a/server/router.go +++ b/server/router.go @@ -77,10 +77,10 @@ func Init(e *gin.Engine) { api.GET("/auth/sso_get_token", handles.SSOLoginCallback) // webauthn + api.GET("/authn/webauthn_begin_login", handles.BeginAuthnLogin) + api.POST("/authn/webauthn_finish_login", handles.FinishAuthnLogin) webauthn.GET("/webauthn_begin_registration", handles.BeginAuthnRegistration) webauthn.POST("/webauthn_finish_registration", handles.FinishAuthnRegistration) - webauthn.GET("/webauthn_begin_login", handles.BeginAuthnLogin) - webauthn.POST("/webauthn_finish_login", handles.FinishAuthnLogin) webauthn.POST("/delete_authn", handles.DeleteAuthnLogin) webauthn.GET("/getcredentials", handles.GetAuthnCredentials)