0

get_token(Step4) Error

When I want to get_token,it return oauth_problem=signature_invalid sad.gif
the signature_method is plaintext, and oauth_signature is step 2 getting token_secret and add %26,
the secret i use consumer_secret or token_secret, it still return this error... sad.gif

thank's everybody...

it's code for jsp

//Step4
java.util.Date aa = new java.util.Date();
String oauth_timestamp =String.valueOf(aa.getTime()/1000);
String oauth_token = "knkrmbm";//getting at Step 2
String secret = "72b44f3a69f8e1fd600424b80f2f287dd664a6be";//getting at Step 2
String oauth_verifier = request.getParameter("oauth_verifier");

url = "https://api.login.yahoo.com/oauth/v2/get_token?";
url = url + "oauth_consumer_key=dj0yJmk9dWZXS3A0MzdrbWt1JmQ9WVdrOWVWZHdjbVJITldNbWNHbzlO
akEyTXpVNU1qWTAmcz1jb25zdW1lcnNlY3JldCZ4PWU5";
url = url + "&oauth_signature_method=plaintext";
url = url + "&oauth_signature=72b44f3a69f8e1fd600424b80f2f287dd664a6be%26";
url = url + "&oauth_timestamp="+oauth_timestamp;
url = url + "&oauth_version=1.0";
url = url + "&oauth_token="+oauth_token;
url = url + "&oauth_nonce=ba21e7";
url = url + "&oauth_verifier="+oauth_verifier;

response.sendRedirect(url);

by
0 Replies

Recent Posts

in OAuth General Discussion YDN SDKs