DevDefined.OAuth icon indicating copy to clipboard operation
DevDefined.OAuth copied to clipboard

HmacSha1 signature method doesn't work

Open bittercoder opened this issue 15 years ago • 0 comments

What steps will reproduce the problem?

  1. use the SignatureMethod.HmacSha1 method

What is the expected output? What do you see instead? class DevDefined.OAuth.Framework.UriUtility static QueryParameter ParseAuthorizationHeaderKeyValuePair(string value) { if (value.IndexOf('=') > -1) { string[] temp = value.Split('='); return new QueryParameter(temp[0].Trim(), StripQuotes(temp[1])); } return new QueryParameter(value.Trim(), string.Empty); } If there is "=" in signature ,for example "auth_signature="uZF3aYQFtyK0F1FFHY+w7/Be+m4="" expect: string[] temp ={"auth_signature","uZF3aYQFtyK0F1FFHY+w7/Be+m4="} But I get string[] temp ={"auth_signature",""uZF3aYQFtyK0F1FFHY+w7/Be+m4"}

What version of the product are you using? On what operating system? Last trunk

Reported by: http://code.google.com/u/snail.luo/

Original issue logged on google code here: http://code.google.com/p/devdefined-tools/issues/detail?id=8

bittercoder avatar Aug 03 '10 20:08 bittercoder