Using username:password on Connection string
Hi,
how can I connect to a Redis 6 with username and password, since this Redis instance uses ACL (https://redis.io/topics/acl)
@akentner Thanks for bringing this up, this is indeed already on the roadmap for v3 of this project as discussed in #129 and #98, but I guess it makes sense to have this as a separate feature ticket :+1:
For now, you can simply omit the username/password from the URI and then explicitly invoke the AUTH command like this:
$client->auth($username, $password);
We will support passing this as part of the URI once #129 is addressed for v3. This is technically a BC break because we currently ignore the username part as it wasn't supported by Redis < 6 when we implemented this feature (https://github.com/clue/reactphp-redis/pull/60).
From the implementation side of things, supporting username/password is relatively easy, but expect the refactoring necessary for #129 and #98 to take some time. We welcome contributions, reach out if you want to support this project :+1: