bittercoder / DevDefined.OAuth

An OAuth Consumer and Provider implemented for .Net
http://code.google.com/p/devdefined-tools/wiki/OAuth
162 stars 70 forks source link

HmacSha1 signature method doesn't work #4

Closed bittercoder closed 11 months ago

bittercoder commented 14 years ago

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 commented 11 months ago

Closed, library no longer supported.