Hi ,

  When i request for access token using following apporach

        GoogleOAuthParameters oauthParameters = new
GoogleOAuthParameters();
        oauthParameters.setOAuthConsumerKey(CONSUMER_KEY);
        oauthParameters.setOAuthConsumerSecret(CONSUMER_SECRET);
         out.println("request.getQueryString() "+request.getQueryString());
        GoogleOAuthHelper oauthHelper = new GoogleOAuthHelper(new
OAuthHmacSha1Signer());
        oauthHelper.getOAuthParametersFromCallback(request.getQueryString(),
oauthParameters);

        String accessToken = oauthParameters.getOAuthToken();
        String accessTokenSecret =
oauthParameters.getOAuthTokenSecret();

It giving error because of in the query string  oauth_token_secret is
not available.

I am using oauth_signature_method="HMAC-SHA1".

How should i get this oauth_token_secret .

I tried post a request to getAccessToken as

https://www.google.com/accounts/OAuthGetAccessToken?oauth_consumer_key=alpha.invox.com&oauth_token=4/PK2Zo1-htvfQ7sV1sOx1HDJ8zbpr&oauth_verifier=LKHHzZl78Tm1yBlpeSauY0VS&oauth_signature_method=HMAC-SHA1&oauth_signature=3J8KBrlcfdFZIiQ3wQC6zVr18MU=&oauth_timestamp=1274365287&oauth_nonce=40801231256765

it is giving as "signature_invalid".

i given signature as consumer secret.

How can we generate signature and oauth_token_secret.

Please help me to solve this issue.



-- 
You received this message because you are subscribed to the Google Groups 
"OAuth" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/oauth?hl=en.

Reply via email to