From da80cba3a081b1c10310f06a4af429089849e350 Mon Sep 17 00:00:00 2001 From: MahtabBukhari Date: Mon, 2 Dec 2024 07:43:17 +0500 Subject: [PATCH] webhook auth check removed --- handlers/ticket.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/handlers/ticket.go b/handlers/ticket.go index fb4223daa..db16c453e 100644 --- a/handlers/ticket.go +++ b/handlers/ticket.go @@ -358,15 +358,6 @@ func (th *ticketHandler) PostTicketDataToStakwork(w http.ResponseWriter, r *http } func (th *ticketHandler) ProcessTicketReview(w http.ResponseWriter, r *http.Request) { - ctx := r.Context() - pubKeyFromAuth, _ := ctx.Value(auth.ContextKey).(string) - - if pubKeyFromAuth == "" { - fmt.Println("[ticket] no pubkey from auth") - w.WriteHeader(http.StatusUnauthorized) - json.NewEncoder(w).Encode(map[string]string{"error": "Unauthorized"}) - return - } body, err := io.ReadAll(r.Body) if err != nil {