Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Notifications signature verification

ANSWERED

Hello!

 

I am having problems to figure out what I am missing for the verification of the signature in the webhooks.

I am getting the X-Fitbit-Signature header and matching it to the body of the request encrypted with SHA1 with the client-secret+'&' as key and then encoding it in Base64.

I have understood that, but it doesn't even match with the test from https://dev.fitbit.com/build/reference/web-api/developer-guide/best-practices/#Subscriber-Security.

I would appreciate if someone could give me a hand.

 

Thanks in advance!

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

The problem I was having is with the JSON body, I didn't remove the spaces and new lines, now it works! 

View best answer in original post

Best Answer
0 Votes
1 REPLY 1

The problem I was having is with the JSON body, I didn't remove the spaces and new lines, now it works! 

Best Answer
0 Votes