@Override public AuthenticationTransactionManager handle(final AuthenticationTransaction authenticationTransaction, final AuthenticationContextBuilder authenticationContext) throws AuthenticationException { if (!authenticationTransaction.getCredentials().isEmpty()) { final Authentication authentication = this.authenticationManager.authenticate(authenticationTransaction); LOGGER.debug("Successful authentication; Collecting authentication result [{}]", authentication); authenticationContext.collect(authentication); } LOGGER.debug("Transaction ignored since there are no credentials to authenticate"); return this; }
final Authentication auth = this.authenticationManager.authenticate(credentials); if (MultiFactorRequestContextUtils.getMultifactorWebApplicationService(context) == null) { final List<MultiFactorAuthenticationRequestContext> mfaRequest =