txghbot._core module documentationtxghbot
The core functionality of the webhook server. Don't use this directly!
| Function | verifyHMAC | Verify the signature of a request. |
| Class | InvalidData | Raised when WebhookDispatchingResource
can't interpret some aspect of a request. |
| Class | WebhookDispatchingResource | A Resource
subclass that authenticates Github web hook requests and dispatches to IWebhook implementing
plugins. |
| Function | _hexdigestBytes | Return the hex digest of an hmac.HMAC object as bytes. |
Return the hex digest of an hmac.HMAC object as bytes.
| Parameters | hmacObject | the HMAC object to digest. (type: hmac.HMAC) |
Verify the signature of a request.
| Parameters | headers | the headers that contain the request under the expected header name. (type: twisted.web.http_headers.Headers) |
| content | the signed content (type: bytes) | |
| key | the key that signed this request. (type: bytes) | |
| Returns | True
if the signature could be verified and False
if not. (type: bool) | |