I have json-rpc service accepting http POST-req only and would like it to use CAS SSO auth. The current request flow looks roughly like this:
POST host/service/ -> 302 redirect
GET host/cas/login?service=https%3A%2F%2Fhost%2Fservice%2F -> 302 redirect
GET host/service/?ticket=ST-16-0rtrEQunbcbNdP16Eu07-cas -> 302 redirect
GET host/service/ -> 405 GET Method not supported
I suppose we need to convert last GET into POST with the original post body params saved. Any hints? Adding bare RequestCacheAwareFilter in the spring-sec chain did not help.