English 中文(简体)
Invalid Authsub token in Google sites for apps
原标题:

I do not get any error while trying to access feed content for google sites from application hosted on gmail authenticated account. But I get

Token invalid - Invalid AuthSub token.

when I try to access application from google apps accounts managed GAE application.

I have tried both https://sites.google.com/feeds/ and http://sites.google.com/feeds/

I have also noticed that when Authsub prompts for grants access the address is taken as domain name address of site something like extra.mydomain.com whereas when page is loaded it is redirected to Google sites address https://sites.google.com/a/mydomain.com/pagename

The windows client is able to access the feed of same site whereas the web app is not getting through.

Stack trace

at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:564) at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:543) at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:536) at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:515) at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:515) at com.google.gdata.client.Service.getFeed(Service.java:1053) at com.google.gdata.client.Service.getFeed(Service.java:916) at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:631) at com.google.gdata.client.Service.getFeed(Service.java:935) at morefile.UploadApp.getFileCabinets(UploadApp.java:92) at morefile.CopyOfUploadApp.doPost(CopyOfUploadApp.java:196) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)

问题回答

I am just guessing here, but I believe the authentication service views your windows client app and web app as separate applications and require each to have a different auth token? How did you obtain the token? from the windows client? Can you try and obtain a token again from the web based client?





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签