Hi!
I am trying to implement the makeRequest in a ASP based webservice but
have no idea how to proceed. I have read the example at
http://code.google.com/p/opensocial-resources/wiki/OrkutValidatingSignedRequests
but this is only valid for PHP. The openssl_verify functions used here
are not available on asp.net platform and OpenSSL.net Managed wrapper
is also useless.

I was wondering if its even possible to verify a signed makeRequest on
ASP.NET or not. The OAuth library for c#( 
http://oauth.googlecode.com/svn/code/csharp/
) exposes a signature function but nothing to verify that. Can anyone
help me with this??


I have even tried working with the test parameters provided at
http://wiki.oauth.net/TestCases The code i am trying is

RSACryptoServiceProvider Provider = CertUtil.GetCertPublicKey(Cert);

string baseString = "GET&http%3A%2F%2Fphotos.example.net%2Fphotos&file
%3Dvacaction.jpg%26oauth_consumer_key%3Ddpf43f3p2l4k3l03%26oauth_nonce
%3D13917289812797014437%26oauth_signature_method%3DRSA-
SHA1%26oauth_timestamp%3D1196666512%26oauth_version%3D1.0%26size
%3Doriginal";

string signature = "jvTp/wX1TYtByB1m
+Pbyo0lnCOLIsyGCH7wke8AUs3BpnwZJtAuEJkvQL2/9n4s5wUmUl4aCI4BwpraNx4RtEXMe5qg5T1LVTGliMRpKasKsW//
e+RinhejgCuzoH26dyF8iY2ZZ/5D1ilgeijhV/vBka5twt399mXwaYdCwFYE=";

Response.Write(Provider.VerifyData(Encoding.Unicode.GetBytes(baseString),
"SHA1", Convert.FromBase64String(signature)));

Any help would be GREATLY appreciated, I have been banging my head for
two days now !
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to