title: How to validate a webhook signature in odoo
body: <p>I am looking for solution which is exactly described <a href="https://stackoverflow.com/questions/35486389/how-to-validate-a-webhook-signature-using-python-and-openssl">HERE</a>
  However I am not sure what should I pass to the second parameter ie request_body
  as I am unable to find body in request object of odoo.</p>
  
  <pre><code>digester = hmac.new(secret, request_body, hashlib.sha256)
  </code></pre>
  
  <p>I have tried to pass</p>
  
  <p>"<strong>request</strong>" which throw error "must be convertible to a buffer, not LocalProxy".</p>
  
  <p>"<strong>request.httprequest</strong>" which throw error "must be convertible to a buffer, not Request".</p>
  
  <p>"<strong>request.jsonrequest</strong>" which throw error "must be convertible to a buffer, not dict".</p>
  
  <p>"<strong>str(request.jsonrequest)</strong>" which process this but give invalid signature.</p>
  
  <p>Any input other than above will be very helpful.
  If you are not sure but you may have possible solution. Give a try, I will test and let you know.
  I am using odoo v10</p>