venkatasubramanyam / socialauth-android

Automatically exported from code.google.com/p/socialauth-android
0 stars 0 forks source link

Cannot do yahoo login #226

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Click login on yahoo.
2.
3.

What is the expected output? 
web Yahoo login form.

What do you see instead?
Nothing, there is exception on SocialAuth 4.7.
org.brickred.socialauth.exception.SocialAuthConfigurationException: Application 
keys are not correct

What version of the product are you using? 
SocialAuth-Android 3.2, with SocialAuth 4.7 (java).

On what operating system?
Windows 8.

Please provide any additional information below.
IDE Android Studio 1.2.1.1

I Found that this url doesn't works:
https://api.login.yahoo.com/oauth/v2/get_request_token?oauth_callback=http%3A%2F
%2Fsocialauth.in%2Fsocialauthdemo&oauth_consumer_key=dj0yJmk9Nlpqd0pIMENnb1N4JmQ
9WVdrOWJqbEhURXA0TTJVbWNHbzlNVEk0TXpNeE5EYzJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD0yOA-
-&oauth_nonce=1434958917313&oauth_signature=d8AnyvNk973HYAJuv1njtfAvoIU%3D&oauth
_signature_method=HMAC-SHA1&oauth_timestamp=1434958917&oauth_version=1.0

I Have debug until:

org.brickred.socialauth.util.OAuthConsumer
on function public AccessGrant getRequestToken(String reqTokenURL, String 
callbackURL) throws Exception {
...///
 Response var13 = HttpUtil.doHttpRequest(reqURL, this.config.get_transportName(), (String)null, (Map)null);
        if(var13.getStatus() == 200) {
            token = new AccessGrant();
            this.parse(var13.getInputStream(), token);
            return token;
        } else {
            this.LOG.debug("Error while fetching Request Token");
            throw new SocialAuthConfigurationException("Application keys are not correct. The server running the application should be same that was registered to get the keys.");
        }

Original issue reported on code.google.com by ardihu...@gmail.com on 21 Jun 2015 at 5:04

GoogleCodeExporter commented 9 years ago
this Url generated by SocialAuth.

https://api.login.yahoo.com/oauth/v2/get_request_token?oauth_callback=http%3A%2F
%2Fsocialauth.in%2Fsocialauthdemo&oauth_consumer_key=dj0yJmk9Nlpqd0pIMENnb1N4JmQ
9WVdrOWJqbEhURXA0TTJVbWNHbzlNVEk0TXpNeE5EYzJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD0yOA-
-&oauth_nonce=1434958917313&oauth_signature=d8AnyvNk973HYAJuv1njtfAvoIU%3D&oauth
_signature_method=HMAC-SHA1&oauth_timestamp=1434958917&oauth_version=1.0

Original comment by ardihu...@gmail.com on 21 Jun 2015 at 5:06

GoogleCodeExporter commented 9 years ago
Ok, found the problem, oauth_timestamp issue.
So the solutions I should re-compile the SocialAuth to changed the 
oauth_timestamp ? or is there any config ?

Original comment by ardihu...@gmail.com on 21 Jun 2015 at 5:51