1

oauth issue

I have a question on ios sdk for yahoo.There is a method call in ios sdk code for yahoo called when we call this way as it is without changing anything in the code the output is safari opened with oauth_verifier code shown in web and not returning back to application.

    [self.session sendUserToAuthorizationWithCallbackUrl:nil];

I changed this method's input a bit as

[self.session sendUserToAuthorizationWithCallbackUrl:@"com-zachgraves-myapp"];

and then safari wont open at all I understand the string passed comes under the Custom URL scheme of iPhone i.e when we get the oauth_verifier code from safari to our app (SocialSample) which is launched back from safari.But Safari wont even open, the problem is the api says

oauth_callback=com-zachgraves-myapp&oauth_consumer_key=dj0yJmk9c2FhZk5EeU1oOTNZJmQ9WVdrOWFVdFhZVVZvTkdzbWNHbzlNVEl4T0RVMU5USTJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD02YQ--&oauth_nonce=33874F92-5119-4E46-9E7F-1E03FA6296CB&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1356281699&oauth_version=1.0

request parameters

https://api.login.yahoo.com/oauth/v2/get_request_token?oauth_signature_method=HMAC-SHA1&oauth_timestamp=1356281699&oauth_version=1.0&oauth_consumer_key=dj0yJmk9c2FhZk5EeU1oOTNZJmQ9WVdrOWFVdFhZVVZvTkdzbWNHbzlNVEl4T0RVMU5USTJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD02YQ--&oauth_signature=IO1u6UZj48XkvLBda4IFNuBosAE%3D&oauth_nonce=33874F92-5119-4E46-9E7F-1E03FA6296CB&oauth_callback=com-zachgraves-myapp

Url has the callback mentioned.

The response is : oauth_problem=parameter_absent&oauth_parameters_absent=oauth_callback

I think all request parameters are sent But I getting invalid response. Can someone please help me here. I need to create some YQL tables and access from the iPhone app for which i should be authenticated.

by
1 Reply
  • I am having exactly same issue with this api. Is there any solution for this or anything that I am missing? I think there is something that I need to set in "URL Types" in Target of my app, but I can't figure it out that what I should set there. Please help.

    0

Recent Posts

in OAuth General Discussion YDN SDKs