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.java
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.wiprosupport.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/samplecontainer/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/oauth.%0Axml>"
: {
"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