开发者

Got 414 Request-URI Too Large from Google when authenticating using Spring Security 3

My steps are as follows:

  1. the user goes to login page.
  2. the user doesn't have an account, and goes for Google OpenId.
  3. the user is prompted by Google login pa开发者_运维技巧ge, and enters login details.
  4. 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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜