使用 Spring Security 3 进行身份验证时收到来自 Google 的 414 Request-URI Too Large
我的步骤如下:
- 用户进入登录页面。
- 用户没有帐户,并使用 Google OpenId。
- Google 登录页面会提示用户,并输入登录详细信息。
- 用户收到 Http 414。414
Request-URI Too Large 请求的 URL /accounts/SetSID... 太大,无法处理。
解决方法是用户必须先登录 Google,然后才能进入登录页面,这样 Google 登录页面就不会再提示他。
有趣的是,它昨天还在工作。
有什么想法吗?谢谢。
My steps are as follows:
- the user goes to login page.
- the user doesn't have an account, and goes for Google OpenId.
- the user is prompted by Google login page, and enters login details.
- the user gets Http 414.
414 Request-URI Too Large
The requested URL /accounts/SetSID... is too large to process.
A workaround is that the user must log in to Google before going to login page, then he won't be prompted by Google login page anymore.
The funny thing is that it was working yesterday.
Any idea? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在达到 GET 请求的最大 URI 长度。
解决办法是通过POST方式发送请求。我想你必须专门为谷歌做这个。请参阅 https://groups。 google.com/forum/?pli=1#!topic/google-federated-login-api/ldEUDr-2BGs。
You are hitting the max URI length of GET requests.
The solution is to send the request via POST. I guess you would have to do this specifically for google. See https://groups.google.com/forum/?pli=1#!topic/google-federated-login-api/ldEUDr-2BGs.