Hi Guys, Thanks for your replies. I did the change mentioned in the patch file in the following Url.
https://issues.apache.org/jira/browse/SHINDIG-962. After doing the change, I got the "Personalize this gadget" link. Once I clicked that link, a popup window appeared. There I entered my google's username & password. Then I clicked on the "I've approved access" link. After that I got the following error message. "UNKNOWN_PROBLEM: Service provider rejected request ==== Original request: GET /m8/feeds/contacts/default/base?alt=json Host: www.google.com X-Shindig-AuthType: oauth X-shindig-dos: on ==== ==== Sent request 1: GET /accounts/OAuthGetAccessToken Host: www.google.com X-Shindig-AuthType: none Authorization: OAuth oauth_token="4%2Fu5FGg4JSswOxyDgQiUK9fJ8_Hnhh", opensocial_owner_id="razack", opensocial_viewer_id="razack", opensocial_app_id="8791", opensocial_app_url="http%3A%2F%2Fweblabs.wipros " Even after refreshing the page, I am not getting "Personalize this gadget" link in the gadget. How can I get that link back?. What might be the problem?. Thanks & Regards, Razak K -----Original Message----- From: Sean Lin [mailto:[email protected]] Sent: Wednesday, March 04, 2009 3:50 PM To: [email protected] Subject: RE: OAuth Gadget Error I'm guessing that you're building off the trunk which I'm guessing is probably unstable. Try http://svn.apache.org/repos/asf/incubator/shindig/branches/1.0.x-incubat ing which I think is more stable. I think it's being tested for issues before RC. Probably this information should be available on http://incubator.apache.org/shindig/ as well. -----Original Message----- From: Matt Falkenhagen [mailto:[email protected]] Sent: Wednesday, 4 March, 2009 5:20 PM To: [email protected] Subject: Re: OAuth Gadget Error It appears that BasicSecurityTokenDecoder was recently updated to expect one more value than it previously did, and the rest of the codebase has not yet caught up. I would recommend checking the container you're using to ensure that it is using a secure token with the expected number of values. Just a little earlier I noticed the same problem with the examples in gadgets/files/container/sample*.html and submitted the following JIRA issue and simple fix: https://issues.apache.org/jira/browse/SHINDIG-962 zz fire ????????: > I'm a newbie,too. > \java\common\src\main\java\org\apache\shindig\auth\BasicSecurityToken.ja va > in line 47, > private static final int CONTAINER_ID_INDEX = 6; > change 6-->5,it works. > But I don't why,and what's the problem inside > > > 2009/3/4 <[email protected]> > >> Hi, >> >> >> >> I am a newbie to OAuth. I have configured Shindig in my server. I am >> trying OAuth Gadget using shindig. I have configured "oauth.json" file >> & a xml file to support OAuth. I am trying to access google contacts in >> my gadget using google as the service provider. >> >> >> >> But I am getting `response.oauthError` as "undefined" and >> `response.oauthErrorText` as "undefined". >> >> >> >> From log file, I got the following error. >> >> >> >> Mar 4, 2009 12:11:36 PM >> org.apache.shindig.auth.AuthenticationServletFilter doFilter >> >> INFO: Malformed security token >> razack:razack:8791:shindig:http%3A//weblabs.wiprosupport.com/shindig/gad >> gets/files/samplecontainer/examples/oauth.xml:20<http://weblabs.wiprosup port .com/shindig/gad%0Agets/files/samplecontainer/examples/oauth.xml:20> >> >> org.apache.shindig.auth.SecurityTokenException: Malformed security token >> >> at >> org.apache.shindig.auth.BasicSecurityTokenDecoder.createToken(BasicSecur >> ityTokenDecoder.java:80) >> >> at >> org.apache.shindig.auth.DefaultSecurityTokenDecoder.createToken(DefaultS >> ecurityTokenDecoder.java:66) >> >> at >> org.apache.shindig.auth.UrlParameterAuthenticationHandler.getSecurityTok >> enFromRequest(UrlParameterAuthenticationHandler.java:51) >> >> at >> org.apache.shindig.auth.AuthenticationServletFilter.doFilter(Authenticat >> ionServletFilter.java:75) >> >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica >> tionFilterChain.java:215) >> >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt >> erChain.java:188) >> >> at >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv >> e.java:213) >> >> at >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv >> e.java:174) >> >> at >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java >> :127) >> >> at >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java >> :117) >> >> at >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. >> java:108) >> >> at >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 >> 51) >> >> at >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87 >> 4) >> >> at >> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc >> essConnection(Http11BaseProtocol.java:665) >> >> at >> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint >> .java:528) >> >> at >> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow >> erWorkerThread.java:81) >> >> at >> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool >> .java:689) >> >> at java.lang.Thread.run(Thread.java:619) >> >> >> >> /// Code snippet from my oauth.xml file. >> >> >> >> <OAuth> >> >> <Service name="google"> >> >> <Access >> url="https://www.google.com/accounts/OAuthGetAccessToken" method="GET" >> /> >> >> <Request >> url="https://www.google.com/accounts/OAuthGetRequestToken?scope=http://w >> ww.google.com/m8/feeds/" method="GET" /> >> >> <Authorization >> url="https://www.google.com/accounts/OAuthAuthorizeToken?oauth_callback= >> http://weblabs.wiprosupport.com/shindig/gadgets/files/samplecontainer/ex >> amples/test.html<http://weblabs.wiprosupport.com/shindig/gadgets/files/s ampl econtainer/ex%0Aamples/test.html>" >> /> >> >> </Service> >> >> </OAuth> >> >> >> >> >> >> /// Code snippet from my oauth.json file. >> >> >> >> {"http://localhost/shindig/gadgets/files/samplecontainer/examples/oauth. >> xml<http://localhost/shindig/gadgets/files/samplecontainer/examples/oaut h.%0 Axml>" >> : { >> >> "google" : { >> >> "consumer_key" : "my consumer key", >> >> "consumer_secret" : "my consumer secret", >> >> "key_type" : "HMAC_SYMMETRIC" >> >> } >> >> } >> >> } >> >> >> >> What might be the problem?. >> >> >> >> Thanks and Regards >> >> Razak K >> >> >> >> >> Please do not print this email unless it is absolutely necessary. >> >> The information contained in this electronic message and any attachments to >> this message are intended for the exclusive use of the addressee(s) and may >> contain proprietary, confidential or privileged information. If you are not >> the intended recipient, you should not disseminate, distribute or copy this >> e-mail. Please notify the sender immediately and destroy all copies of this >> message and any attachments. >> >> WARNING: Computer viruses can be transmitted via email. The recipient >> should check this email and any attachments for the presence of viruses. The >> company accepts no liability for any damage caused by any virus transmitted >> by this email. >> >> www.wipro.com >> > Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com

