hybrid + obtained token_k and token_s can not sign request to picasa service (google api java client)

3 views
Skip to first unread message

alucarD

unread,
Aug 29, 2010, 3:13:58 PM8/29/10
to dyuproject
Hi
When I try sign requests to any google service then I get exception :
403 OK. Signing code:
HttpTransport transport = GoogleTransport.create();
GoogleHeaders headers = (GoogleHeaders) transport.defaultHeaders;
headers.setApplicationName("google-youtubejsoncsample-1.0");
headers.gdataVersion = "2";
transport.addParser(new JsonCParser());

OAuthHmacSigner s = new OAuthHmacSigner();
s.clientSharedSecret = "myshared_secret_from_registration";
s.tokenSharedSecret = token_secret;

OAuthParameters authorizer = new OAuthParameters();
authorizer.consumerKey = "myapp.appspot.com";
authorizer.signer = s;
authorizer.token = token_key;
authorizer.signRequestsUsingAuthorizationHeader(transport);

When I create access token using google api java client (new gdata
api) then signing code passes correctly. What is going on? I spent a
lot of time to implement hybrid in gwt+appengine:( and my work gone
for nothing:(

David Yu

unread,
Aug 31, 2010, 3:25:12 AM8/31/10
to dyupr...@googlegroups.com
The hybrid picasaweb demo at dyuproject.appspot.com works fine.
I would suggest you use the sample code and do incremental changes.
You probably wanna test it first with no code changes using your own openid/oauth credentials on appengine.
When that works, you convert the jquery popup-code to its gwt equivalent.

There's a GWT-openid howto on http://code.google.com/p/sixfixmix/wiki/OpenId

Hope that helps.


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




--
When the cat is away, the mouse is alone.
- David Yu
Reply all
Reply to author
Forward
0 new messages