Any Pointers?
Thanks

On Feb 7, 10:24 pm, Jaspal Sawhney <jaspal.sawh...@gmail.com> wrote:
>  Steps to reproduce issue:
> 1. Trying to implement a 3 - legged Oauth to access google calendar using
> OpenIdfilter library (which internally uses Step2 and OpenId4Java).
>
> 2. Code snippet being used is as follows
> *GoogleOAuthHelper oauthHelper = new GoogleOAuthHelper(new
> OAuthHmacSha1Signer());
> OAuthParameters oauthParameters = new OAuthParameters();
> oauthParameters.setOAuthConsumerKey("jbbssopoc.appspot.com");
> oauthParameters.setOAuthConsumerSecret("PcVxBDDTZ9mfnzbVvUe68rCp");
> oauthParameters.setOAuthToken((String)req.getAttribute("openid.oauth.token"));
> oauthParameters.setOAuthTokenSecret("");
> String accessToken = oauthHelper.getAccessToken(oauthParameters);*
>
> 3. As per the oauth spec and other posts online setting the token secret as
> "" should not throw an error however I'm getting a
> "*com.google.gdata.client.authn.oauth.OAuthException: oauth_token_secret
> does not exist*" error.
>
> 4. If I however make the OauthTokenSecret to " " then I do not get an error
> but do not get the access token.
>
> Expected output:
> 1. Expecting the call to return an access token
>
> Actual results:
> Error or Empty Access Token
>
> Thanks
>
> Jaspal./

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to