The following proposal describes new security realm meant to provide alternative to custom login modules that could be configured in legacy security subsystem:

https://github.com/wildfly/wildfly-proposals/pull/420 

All feedback is welcomed.

Thanks,
Diana