Closed aaronn closed 4 years ago
I believe validate_webhook may be broken:
validate_webhook
webhook = pusher.validate_webhook( request.headers.get("X-Pusher-Key"), request.headers.get("X-Pusher-Signature"), request.data, )
This always returns None even if I copy and paste the key, signature, and data directly.
None
It is failing specifically on line 118 in authentication_client.py:
118
authentication_client.py
if not verify(self.secret, body, signature): return None
The signature appears to always be different than the one returned by hmac.compare in signature.py.
hmac.compare
signature.py
I'm using django-rest-framework and I had to use the raw request.body to fix this. json.dumps(request.data) does not work.
request.body
I believe
validate_webhook
may be broken:This always returns
None
even if I copy and paste the key, signature, and data directly.It is failing specifically on line
118
inauthentication_client.py
:The signature appears to always be different than the one returned by
hmac.compare
insignature.py
.