Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using username:password on Connection string #133

Open
akentner opened this issue Aug 23, 2022 · 1 comment
Open

Using username:password on Connection string #133

akentner opened this issue Aug 23, 2022 · 1 comment

Comments

@akentner
Copy link

akentner commented Aug 23, 2022

Hi,

how can I connect to a Redis 6 with username and password, since this Redis instance uses ACL (https://redis.io/topics/acl)

@clue clue added this to the v3.0.0 milestone Aug 26, 2022
@clue
Copy link
Owner

clue commented Aug 26, 2022

@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 👍

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 (#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 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants