You need to request before throw OAuthGetAccessToken. There are three
request in total.
If you want use oauth with google, read next page:
http://code.google.com/intl/es-ES/apis/accounts/docs/OAuth_ref.html
Regards,
On 20 mayo, 16:36, ramesh mantra <[email protected]> wrote:
> 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_ke...
>
> 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
> athttp://groups.google.com/group/oauth?hl=en.
--
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.