diff --git a/pkg/service/auth.go b/pkg/service/auth.go index 3fcc1ce49..9d8c1e921 100644 --- a/pkg/service/auth.go +++ b/pkg/service/auth.go @@ -89,7 +89,7 @@ func (m *APIKeyAuthMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request, secret := m.provider.GetSecret(v.APIKey()) if secret == "" { - HandleError(w, r, http.StatusUnauthorized, ErrInvalidAPIKey) + HandleError(w, r, http.StatusUnauthorized, ErrInvalidAPIKey, "apiKey", v.APIKey()) return }