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:
After restarting wildfly and clearing cookies all should work as expected