尝试在Google App Engine中登录Google帐户时,“您请求的页面无效”

时间:2012-04-01 20:40:37

标签: google-app-engine google-api

我在GAE上部署了一个应用程序。我在我的网页上使用JSF。我使用Google帐户API让我的用户登录。 登录URL创建的代码是:

HttpServletRequest req = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
UserService userService = UserServiceFactory.getUserService();
String loginURL = userService.createLoginURL(req.getRequestURI());

代码创建的loginURL是:

https://www.google.com/accounts/ServiceLogin?service=ah&passive=true&continue=https://appengine.google.com/_ah/conflogin%3Fcontinue%3D<my application home JSF page>&ltmpl=gm&shdf=ChALEgZhaG5hbWUaBFRlc3QMEgJhaCIUG4bRrGRUVeCNGKu07NKfR4J9Wp8oATIUhxCkjIdiyeVwHWveU9q2Qm1jhqc

大部分时间它运行正常,但在某些情况下(例如,从我所有登录的Google帐户中退出,关闭浏览器,再次打开并尝试登录)我没有到达登录页面但是而是一个带有消息的错误页面:&#34;您请求的页面无效&#34;。

有什么想法吗?

0 个答案:

没有答案