Hi,

i try to use Oauth and VB.net to connect to Urban Rival

i use a vb code find in Oauth web page
http://oauth.googlecode.com/svn/code/vbnet/oAuth.vb

------------------------------------------------------------------------------
my vb code and my problem

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"

and both gave the same message (not work), what is the problem ?

I applied the modification found in this topic (this forum, 2009)
http://groups.google.com/group/oauth/browse_thread/thread/e578c7401cbbeee8/26ddf7469825b1f0?lnk=gst&q=vb#26ddf7469825b1f0

still the same problem.

some idea ? thanks a lot.

-- 
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.

Reply via email to