Hello
i begin my training on Oauth with vb.net.
I use the vb.net class code given by oauth web page.
Dim signatureBase As String = GenerateSignatureBase(url,consumerKey,
token, tokenSecret, httpMethod, timeStamp, nonce,
HMACSHA1SignatureType, normalizedUrl,
normalizedRequestParameters)
Dim hmacsha1 As New HMACSHA1()
hmacsha1.Key = Encoding.ASCII.GetBytes(String.Format("{0}&{1}",
UrlEncode(consumerSecret), IIf(String.IsNullOrEmpty(tokenSecret),
"",urlEncode(tokenSecret))))
Return (GenerateSignatureUsingHash(signatureBase, hmacsha1))
hmacsha1.Key =
"GET&http%3A%2F%2Fwww.urban-rivals.com%2Fapi%2Fauth
%2Frequest_token.php&oauth_version%3D1.0%26oauth_nonce
%3D3884901%26oauth_timestamp%3D1302514423%26oauth_signature_method
%3DHMAC-SHA1%26oauth_consumer_key
%3D4be261761b90235e6a0dfade3784ab8904d954fdb"
(=> IS THIS VALUE OK ?)
and
GenerateSignatureUsingHash(signatureBase, hmacsha1) =
"anSKTtH/F1kJRAoUby4xtPHscfI=D"
if i url_en_code the result,
urlEncode(GenerateSignatureUsingHash(signatureBase, hmacsha1) )=
"anSKTtH%2F1kJRAoUby4xtPHscfI%3D"
I follow the change given in a 2009 mail** (find in this forum) but
still the same problem.
**http://groups.google.com/group/oauth/browse_thread/thread/
e578c7401cbbeee8/26ddf7469825b1f0?lnk=gst&q=vb#26ddf7469825b1f0
UR web does recognize my request, what is the problem ?
--
You received this message because you are subscribed to the Google Groups
"OAuth" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/oauth?hl=en.