From 677bd9efe32d0a0765bac1354b37067083b6743c Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Mon, 23 May 2022 12:34:47 -0700 Subject: [PATCH] Re-add missing required auth middleware to callback --- router/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/router.go b/router/router.go index de5390a77..9f505db4e 100644 --- a/router/router.go +++ b/router/router.go @@ -355,7 +355,7 @@ func Start() error { // Start auth flow http.HandleFunc("/api/auth/indieauth", middleware.RequireUserAccessToken(indieauth.StartAuthFlow)) - http.HandleFunc("/api/auth/indieauth/callback", indieauth.HandleRedirect) + http.HandleFunc("/api/auth/indieauth/callback", middleware.RequireAdminAuth(indieauth.HandleRedirect)) http.HandleFunc("/api/auth/provider/indieauth", indieauth.HandleAuthEndpoint) http.HandleFunc("/api/auth/fediverse", middleware.RequireUserAccessToken(fediverseauth.RegisterFediverseOTPRequest))