02-24-2015 01:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-24-2015 01:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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?
Answered! Go to the Best Answer.

- Labels:
-
.NET
-
OAuth 1.0a
Accepted Solutions
02-24-2015 07:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


02-24-2015 07:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
You should pass exactly "HMAC-SHA1" value. In other words you have missing "-" in signature method that you pass in your request.
Senior Software Developer at Fitbit

02-24-2015 07:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


02-24-2015 07:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
You should pass exactly "HMAC-SHA1" value. In other words you have missing "-" in signature method that you pass in your request.
Senior Software Developer at Fitbit

02-24-2015 08:01
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-24-2015 08:01
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

02-24-2015 08:02 - edited 02-24-2015 08:03
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


02-24-2015 08:02 - edited 02-24-2015 08:03
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.
Senior Software Developer at Fitbit

