Got 414 Request-URI Too Large from Google when authenticating using Spring Security 3
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 pa开发者_运维技巧ge, 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.
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.
精彩评论