informatikr / hedis

A Redis client library for Haskell.
http://hackage.haskell.org/package/hedis
BSD 3-Clause "New" or "Revised" License
329 stars 127 forks source link

Add support for username in connection url #199

Closed davey4 closed 1 year ago

davey4 commented 1 year ago

Redis 6 brought full ACL support by accepting a username in addition to the already existing password. In parseConnectInfo the username currently gets ignored.

qnikst commented 1 year ago

Hello, I've added a support for parseConnectInfo command as well as introduced authOpts with AuthOpts datatype. Checked on a simple ACL in the Redis6.

Please check if the fix workes for you.

It will come in the next release but we need to do quite a bit of work before we can release.

davey4 commented 1 year ago

Yup tested and these changes work for me. Thanks!