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

Adde API for ACL validation #294

Merged
merged 5 commits into from
Mar 21, 2023
Merged

Adde API for ACL validation #294

merged 5 commits into from
Mar 21, 2023

Conversation

MeirShpilraien
Copy link
Collaborator

The PR adds 3 API's for ACL validations:

  1. Get current user from the Redis context (as RedisString).
  2. Authenicate the context on a given user.
  3. Check if a key has a given permission on a given user.

Relevant tests was added to verify the new functionality.

The PR adds 3 API's for ACL validations:

1. Get current user from the Redis context (as `RedisString`).
2. Authenicate the context on a given user.
3. Check if a key has a given permission on a given user.

Relevant tests was added to verify the new functionality.
examples/acl.rs Show resolved Hide resolved
src/context/mod.rs Outdated Show resolved Hide resolved
src/context/mod.rs Outdated Show resolved Hide resolved
@MeirShpilraien MeirShpilraien requested a review from iddm March 21, 2023 11:27
iddm
iddm previously approved these changes Mar 21, 2023
@MeirShpilraien MeirShpilraien merged commit 5914738 into master Mar 21, 2023
@MeirShpilraien MeirShpilraien deleted the added_api_to_verify_acl branch March 21, 2023 11:58
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.

2 participants