emqx-auth-redis
emqx-auth-redis copied to clipboard
Using EVAL as auth.redis.auth_cmd
When attempting to use the following command as the auth.redis.auth_cmd parameter it is not sent to redis correctly.
EVAL "return redis.call('HGET','App:Auth:Users:test','pass')" 0
The command is actually sent to redis as:
"EVAL" "\"return" "redis.call('HGET','App:Auth:Users:test','pass')\"" "0"
I'm guessing line 43 here is the issue: https://github.com/emqtt/emq-auth-redis/blob/master/src/emq_auth_redis_cli.erl
Could an option be added where the command is sent verbatim except for the %u and %c substitutions?
Hi, @Think7 Sorry for the late reply,Do you resolve this problem?