code: protected static boolean locateMatchingAttributeBasedOnAuthenticationAttributes(
          final MultifactorAuthenticationProviderBypassProperties bypass, final Authentication authn) {
          return locateMatchingAttributeValue(bypass.getAuthenticationAttributeName(),
              bypass.getAuthenticationAttributeValue(), authn.getAttributes(), false);
      }
docs: Skip bypass and support event based on authentication attributes.
  
  @param bypass the bypass settings for the provider.
  @param authn  the authn
  @return the boolean