Skip to content

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