Hi Tom,
Thanks for the reply.
As you mentioned I am trying to validate the signature that i am getting as part of the post parameter of the incoming request from yahoo. I using the Oauth lib from
http://code.google.com/p/devdefined-tools/wiki/OAuth to do the validation. For some reason it never validates the signature.
OAuthContext context = new OAuthContext
{
ConsumerKey = Request["yap_consumer_key"],
Signature = Request["oauth_signature"],
Token = Request["yap_viewer_access_token"],
TokenSecret = Request["yap_viewer_access_token_secret"],
RawUri = CleanUri(Request.Url),
Cookies = CollectCookies(Request),
Headers = Request.Headers,
RequestMethod = Request.HttpMethod,
SignatureMethod = "HMAC-SHA1"
};
OAuthContextSigner signer = new OAuthContextSigner();
SigningContext signingContext = new SigningContext();
signingContext.ConsumerSecret = "<secret i got from yahoo>";
if (!signer.ValidateSignature(context,signingContext)){
return false;
}else{
return true;
}
I have also noticed that I don't get all the oauth parameters as outlined in the actual spec and that some of these parameter prefixes have been changed from oauth_ to yap_ . I have already made some changes to the library to reflect this. I noticed that I don't received the oauth_version and oauth_nonce parameter in the post request made from yahoo to my application.
I am kind of pulling my hair at this point. Would really appreciate any help i can get
Regards,
Anil