0

我正在为 liferay 用户尝试 google oAuth 身份验证。用于 Google OAuth 的 URL 是

https://accounts.google.com/o/oauth2/auth?client_id=myClientId&redirect_uri=http://localhost:8090/c/login/oauth2callback&response_type=code&scope=https://www.googleapis.com/auth/userinfo.profile+https://www.googleapis.com/auth/userinfo.email

它会将我重定向到谷歌登录页面(如果用户未登录),然后是授权页面。

在我说允许之后,浏览器将我重定向到

https://accounts.google.com/o/noscript

You've reached this page because we have detected that Javascript is disabled in your browser. The page you attempted to load cannot display properly if scripts are disabled.

Please enable scripts and retry the operation or go back in your browser

它只发生在 Firefox(我使用 16.0.2,即使在早期版本中也发生)和 chrome(22) 中。它在 IE 中运行良好。

这里会有什么问题?

4

3 回答 3

1

一种可能是一些扩展阻塞js,在隐身窗口中重试,如果oAuth OK:对于最新安装的扩展,您可以选择“允许隐身”,然后尝试隐身查看agian,如果oAuth失败,则删除扩展。我刚刚找到一个奇怪的扩展,删除它,然后确定!

于 2013-07-03T11:11:33.380 回答
0

您是否尝试在 Chrome 中启用脚本

于 2012-11-06T10:11:05.430 回答
0

原因是您没有足够好的配置设置。转到 Mozilla 中的 about:config,然后转到 VERY 最后一个,然后将其设置为 0。

于 2014-01-15T00:26:51.227 回答