Unable to validate Event notification endpoint URL

Trying to validate Event notification endpoint URL but it is failing all the time.
Getting URL validation failed. Try again later. error.
Zoom should provide specific error, not generic error to save developers time.

I have implemented validation logic as Using webhooks
I checked HMAC-SHA256 created by my logic with created by Free HMAC-SHA256 Online Generator Tool | Devglan, both are identical.

Implemented logic Ruby, below is a code line

hash_for_validate = OpenSSL::HMAC.hexdigest("sha256", SECRET_TOKEN, params["payload"]["plainToken"])

Please help me to validate URL.

Is your logic something like this?

hash_for_verify = OpenSSL::HMAC.hexdigest('sha256', ZOOM_WEBHOOK_SECRET_TOKEN, message)
  signature = "v0=#{hash_for_verify}"

@ojus.zoom I suppose signature = "v0=#{some_hash}" is to verify request is from zoom and not to validate webhook endpoint URL. Here I’m trying to validate endpoint URL Using webhooks .

@ritesh.katare23 sorry for the confusion… I grabbed the wrong part of the code.

This is what I believe the correct code should look like

 if payload["event"] == "endpoint.url_validation"
      hash_for_validate = OpenSSL::HMAC.hexdigest('sha256', ENV['ZOOM_WEBHOOK_SECRET_TOKEN'], payload["payload"]["plainToken"])

      render json: {
        plainToken: payload["payload"]["plainToken"],
        encryptedToken: hash_for_validate
      }, status: :ok
1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.