This commit adds test cases that check that the authn and authz modules for MongoDB support the use_legacy_protocol configuration option. Fixes: https://emqx.atlassian.net/browse/EMQX-12245
Also test authorization with mongo in bridge / auth test suites.