danieleteti / delphiredisclient

Redis client for Delphi
Apache License 2.0
307 stars 133 forks source link

NewRedisClient has no REDIS access password input parameter when redis-server --requirepass security is enabled #36

Open lidernetworktecnologia opened 1 year ago

lidernetworktecnologia commented 1 year ago

I would like this input parameter to be implemented as it already exists for host and port. This is because when publishing REDIS in the cloud, it is necessary to activate the --requirepass security in the redis.conf file to prevent unauthorized access. I would like to congratulate you for the component, it is excellent, but this input parameter is missing!

Zhou171542036 commented 1 year ago

来信已收到。

danieleteti commented 1 year ago

Thanks for your kind words. Did you check the AUTH method?

DT

Il ven 9 giu 2023, 14:17 LIDERNetwork Tecnologia by Junior LIDER < @.***> ha scritto:

I would like this input parameter to be implemented as it already exists for host and port. This is because when publishing REDIS in the cloud, it is necessary to activate the --requirepass security in the redis.conf file to prevent unauthorized access. I would like to congratulate you for the component, it is excellent, but this input parameter is missing!

— Reply to this email directly, view it on GitHub https://github.com/danieleteti/delphiredisclient/issues/36, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAK4ZJCVBUFMJLDTG7HD5NLXKMH4FANCNFSM6AAAAAAZASGGFI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

lidernetworktecnologia commented 1 year ago

Yes, I tried this method but as new does not have the parameter it is created without the password and therefore cannot connect. The AUTH method only works after the object is created, so you would need to pass this parameter before new, which is currently not possible