I have been working on YouTube Push Notifications Subscription.
I'm able to subscribe for it and did received push notifications from YouTube. I have used HMAC secret for this subscription. I need to confirm that the data I'm receiving is sent from the YouTube server. I can't find any document to get to know about how PubSubHubbub is creating signature.
I have tried the following steps:
- did normalized the request body (which is XML content),
- did created SHA1 digest in HEX form.
But this signature doesn't match with the one sent from PubSubHubbub.
Could anyone please explain the steps to calculate signature for this purpose?
Thanks in advance.
According to the official docs of PubSubHubbub Core (v0.4, the latest), you have to follow precisely the algorithm described there:
If you'll mention the programming environment that you use, I may help you further.