I have enabled xAuth of my Tumblr app and I'm sure the signature is correct (tested with the sample values of twitter sample and got same signature - https://dev.twitter.com/docs/oauth/xauth) , but I always got 401 error with below c# code:
On Wednesday, June 27, 2012 4:31:16 PM UTC+8, James Zhou wrote:
> I have enabled xAuth of my Tumblr app and I'm sure the signature is > correct (tested with the sample values of twitter sample and got same > signature - https://dev.twitter.com/docs/oauth/xauth) , but I always got > 401 error with below c# code:
On Wednesday, June 27, 2012 10:31:51 PM UTC-4, James Zhou wrote:
> On Wednesday, June 27, 2012 4:31:16 PM UTC+8, James Zhou wrote:
>> I have enabled xAuth of my Tumblr app and I'm sure the signature is >> correct (tested with the sample values of twitter sample and got same >> signature - https://dev.twitter.com/docs/oauth/xauth) , but I always got >> 401 error with below c# code:
On Friday, June 29, 2012 8:34:21 AM UTC+8, Weebs wrote:
> Maybe my post didn't get submitted yesterday but, the I noticed your post > body is not sorted properly. Mine is mode&password&username.
> On Wednesday, June 27, 2012 10:31:51 PM UTC-4, James Zhou wrote:
>> On Wednesday, June 27, 2012 4:31:16 PM UTC+8, James Zhou wrote:
>>> I have enabled xAuth of my Tumblr app and I'm sure the signature is >>> correct (tested with the sample values of twitter sample and got same >>> signature - https://dev.twitter.com/docs/oauth/xauth) , but I always >>> got 401 error with below c# code:
The parameters don't need to be ordered in the post body - as long as they're ordered in the OAuth details. It looks like this is a signature issue - and will require more details about your implementation.
Have you tried using an OAuth library for a comparison of values? A really straight forward one for .NET is Hammock, which I used before I wrote my own and can handle XAuth requests, and then you can see if you get the same result.
I'm working on wiring up some C# examples for this kind of thing, so hopefully in the future this will be less of a problem.
On Friday, June 29, 2012 1:13:12 PM UTC+8, Steven Pears wrote:
> The parameters don't need to be ordered in the post body - as long as > they're ordered in the OAuth details. It looks like this is a signature > issue - and will require more details about your implementation.
> Have you tried using an OAuth library for a comparison of values? A really > straight forward one for .NET is Hammock, which I used before I wrote my > own and can handle XAuth requests, and then you can see if you get the same > result.
> I'm working on wiring up some C# examples for this kind of thing, so > hopefully in the future this will be less of a problem.