Recent searches
No recent searches
Verifying webhook authenticity using Spring Boot
Posted Oct 30, 2022
I am migrating some code to Java Spring Boot and using Zendesk WebHooks. The Webhooks request have two headers.
X-Zendesk-Webhook-Signature - the main signature
X-Zendesk-Webhook-Signature-Timestamp - the timestamp used to verify the signature
Also there is a secret key. Until now I was able to test webhook and It successfully reached my @RestController but now I want to validate it that its coming from Zendesk. Ref - https://developer.zendesk.com/documentation/event-connectors/webhooks/verifying/
0
2
2 comments
Eric Nelson
Do you mind clarifying what your question is? Unfortunately we don't have a tutorial on how to handle webhook verification in java.
Sorry for the inconvenience
0
Michal Zawalski
Jehudowuf I'm verifying the request via this method and it works in Spring Boot :) arguments for the function come from webhook request: headers you mention and the full request body. Hope it helps :) Compared signatures in the final if statement should be the same.
0