Chain order: EncodedCustomAuthProvider (internal users) -> LegacyDirectoryAuthProvider (mainframe)

user/password    302 -> /       AuthenticationSuccessEvent + InteractiveAuthenticationSuccessEvent
  /whoami -> ["FACTOR_PASSWORD","ROLE_USER"]
admin/secret     302 -> /       AuthenticationSuccessEvent + InteractiveAuthenticationSuccessEvent
  /whoami -> ["FACTOR_PASSWORD","ROLE_ADMIN","ROLE_USER"]
locked/secret    302 -> /login?error AuthenticationFailureLockedEvent
ghost/whatever   302 -> /login?error AuthenticationFailureBadCredentialsEvent
admin/wrong      302 -> /login?error AuthenticationFailureBadCredentialsEvent

-- legacy directory switched off --
user/password    302 -> /       AuthenticationSuccessEvent + InteractiveAuthenticationSuccessEvent
admin/secret     302 -> /login?error AuthenticationFailureServiceExceptionEvent
