diff --git a/apps/emqx_authn/src/emqx_authn_api.erl b/apps/emqx_authn/src/emqx_authn_api.erl index c785bf0f6..b64e8b904 100644 --- a/apps/emqx_authn/src/emqx_authn_api.erl +++ b/apps/emqx_authn/src/emqx_authn_api.erl @@ -1406,6 +1406,7 @@ authenticator_examples() -> mechanism => <<"password_based">>, backend => <<"redis">>, server => <<"127.0.0.1:6379">>, + redis_type => <<"single">>, database => 0, cmd => <<"HMGET ${username} password_hash salt">>, password_hash_algorithm => #{ diff --git a/apps/emqx_authn/test/emqx_authn_redis_SUITE.erl b/apps/emqx_authn/test/emqx_authn_redis_SUITE.erl index 6d5b89f10..26ca03ea4 100644 --- a/apps/emqx_authn/test/emqx_authn_redis_SUITE.erl +++ b/apps/emqx_authn/test/emqx_authn_redis_SUITE.erl @@ -263,6 +263,7 @@ raw_redis_auth_config() -> cmd => <<"HMGET mqtt_user:${username} password_hash salt is_superuser">>, database => <<"1">>, password => <<"public">>, + redis_type => <<"single">>, server => redis_server() }. diff --git a/apps/emqx_authn/test/emqx_authn_redis_tls_SUITE.erl b/apps/emqx_authn/test/emqx_authn_redis_tls_SUITE.erl index 604495d8c..0e00024fb 100644 --- a/apps/emqx_authn/test/emqx_authn_redis_tls_SUITE.erl +++ b/apps/emqx_authn/test/emqx_authn_redis_tls_SUITE.erl @@ -145,6 +145,7 @@ raw_redis_auth_config(SpecificSSLOpts) -> database => <<"1">>, password => <<"public">>, server => redis_server(), + redis_type => <<"single">>, ssl => maps:merge(SSLOpts, SpecificSSLOpts) }.