Google 网站中应用程序的 Authsub 令牌无效
尝试从 Gmail 身份验证帐户托管的应用程序访问 Google 网站的提要内容时,我没有收到任何错误。 我得到了
Token invalid - Invalid AuthSub token.
但是当我尝试从 Google Apps 帐户管理的 GAE 应用程序访问应用程序时,
。我已尝试过 https://sites.google.com/feeds/ 和 http://sites.google.com/feeds/
我还注意到,当 Authsub 提示授予访问该地址的权限时被视为网站的域名地址,例如 extra.mydomain.com,而当页面加载时,它会被重定向到 Google 网站地址 https://sites.google.com/a/mydomain.com/pagename
Windows 客户端能够访问同一网站的提要,但网络应用程序无法访问。
堆栈跟踪
位于 com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:564) 在 com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:543) 在 com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:536) 在 com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:515) 在 com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:515) 在 com.google.gdata.client.Service.getFeed(Service.java:1053) 在 com.google.gdata.client.Service.getFeed(Service.java:916) 在 com.google.gdata.client.GoogleService.getFeed(GoogleService.java:631) 在 com.google.gdata.client.Service.getFeed(Service.java:935) 在 morefile.UploadApp.getFileCabinets(UploadApp.java:92) 在 morefile.CopyOfUploadApp.doPost(CopyOfUploadApp.java:196) 在 javax.servlet.http.HttpServlet.service(HttpServlet.java:713) 在 javax.servlet.http.HttpServlet.service(HttpServlet.java:806) 在 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我只是在这里猜测,但我相信身份验证服务将您的 Windows 客户端应用程序和 Web 应用程序视为单独的应用程序,并要求每个应用程序拥有不同的身份验证令牌?您是如何获得令牌的?从 Windows 客户端?您可以尝试再次从基于 Web 的客户端获取令牌吗?
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?