Spring Security on Wildfly: error while executing the filter chain
Investigating the problem I have noticed that there is some mess with cookies and referers in the auth request.
Currently wildfly authentication will work if you change webapplication context to the Root Context:
<server name="default-server" default-host="webapp">
<http-listener name="default" socket-binding="http"/>
<host name="default-host" alias="localhost" default-web-module="sso.war"/>
</server>
After restarting wildfly and clearing cookies all should work as expected