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

How to set the password of Redis #5

Open
zhaojinmeng opened this issue Jul 20, 2022 · 3 comments
Open

How to set the password of Redis #5

zhaojinmeng opened this issue Jul 20, 2022 · 3 comments

Comments

@zhaojinmeng
Copy link

How to set the password of Redis?It doesn't have password parameter

@hsluoyz
Copy link

hsluoyz commented Jul 20, 2022

@jessecooper @dfresh613

@dfresh613
Copy link
Contributor

It does not seem like the current implementation will support a password. However this is easy to add if we just use the Redis.from_url method as a means of connecting

Using from_url would allow users to provide username and password via the host string/url.

Of course, another approach would be to support an optional param/arg to RedisWatcher.

Contributions welcome

@zhaojinmeng
Copy link
Author

Thank you for your answer. How to set from_URL in pyCasbin-redis-watcher? I can't see the setup entry. I rewrote the RedisWatcher class myself, adding password and DB options to use in the project.

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

No branches or pull requests

3 participants