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

Invalid oauth signature method - but i'm using HmacSha1

ANSWERED

Hello,

i'm building a web api with RestSharp authentication. 
I set the signaturemethod to HmacSha1, but still i get this error:


{"errors":[{"errorType":"oauth","fieldName":"oauth_signature_method","message":"Invalid signature method: HMACSHA1. Fitbit API currently supports: HMAC-SHA1"}],"success":false}

This method worked 2 weeks ago.
What can be the problem?

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

You should pass exactly "HMAC-SHA1" value. In other words you have missing "-" in signature method that you pass in your request.

Ivan Bahdanau
Senior Software Developer at Fitbit

View best answer in original post

Best Answer
0 Votes
3 REPLIES 3

You should pass exactly "HMAC-SHA1" value. In other words you have missing "-" in signature method that you pass in your request.

Ivan Bahdanau
Senior Software Developer at Fitbit
Best Answer
0 Votes

I cant pass anything to the OAuth1Authenticator, just i can set from the RestSharp list, but the same code works on a windows hpone 8 page, but not on the server.


Best Answer
0 Votes

Fitbit API servers expect "HMAC-SHA1" as a value.

If the library you're using does not allow it please contat the developers who developed this library.

 

Ivan Bahdanau
Senior Software Developer at Fitbit
Best Answer
0 Votes