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

Add capability to create module users #354

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ThatsMrTalbot
Copy link

This PR adds a new RedisUser type that wraps the native "RedisModuleUser" type as well as functions to set the ACL on that user.

It also adds methods to the context to authenticate a client using the created RedisUser. This is the foundation for building Redis modules that can do user management (I also would like to implement a solution that wraps RedisModule_RegisterAuthCallback when that is released).

I updated the acl example and tests with the new functionality.

Note:
This is my first real play with Rust so any feedback is appreciated.

@ThatsMrTalbot ThatsMrTalbot force-pushed the feat-redisuser branch 3 times, most recently from 7141716 to fcb43d3 Compare July 15, 2023 19:12
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

Successfully merging this pull request may close these issues.

1 participant