0

Re-add missing required auth middleware to callback

This commit is contained in:
Gabe Kangas 2022-05-23 12:34:47 -07:00
parent f097238e24
commit 677bd9efe3
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA

View File

@ -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))