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

Authentication #18

Open
gencer opened this issue Jul 30, 2018 · 4 comments
Open

Authentication #18

gencer opened this issue Jul 30, 2018 · 4 comments

Comments

@gencer
Copy link

gencer commented Jul 30, 2018

How do you handle authentication using this library? In most cases redis is protected by password for safety.

I would like to know how we handle authentication.

@benashford
Copy link
Owner

At present there's no specific support for this. But individual applications can send an AUTH command explicitly when opening a connection.

This can be cumbersome depending on the nature of the work being done, so I'll leave this issue open and tag it as a feature request, as it would make sense to handle this as a convenience when opening (and re-opening) connections.

@gencer
Copy link
Author

gencer commented Jul 31, 2018

Thanks'! I'll keep my eyes on this.

@akhilman
Copy link

Perhaps authentication could be done by passing a function as argument to connect/paired_connect. This function will be called every time after connecting/reconnecting and before sending any other commands to server. In this function we can call AUTH, SELECT (change database number) and even upload lua scripts.

@joe-at-startupmedia
Copy link

#49

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

4 participants