mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 18:35:46 +02:00
feat(acl): add pub/sub (#3574)
* add support for pub/sub * add tests --------- Signed-off-by: kostas <kostas@dragonflydb.io>
This commit is contained in:
parent
a22eff15dc
commit
0705bbb536
18 changed files with 445 additions and 85 deletions
|
@ -1701,6 +1701,7 @@ bool ServerFamily::DoAuth(ConnectionContext* cntx, std::string_view username,
|
|||
auto cred = registry->GetCredentials(username);
|
||||
cntx->acl_commands = cred.acl_commands;
|
||||
cntx->keys = std::move(cred.keys);
|
||||
cntx->pub_sub = std::move(cred.pub_sub);
|
||||
cntx->ns = &namespaces.GetOrInsert(cred.ns);
|
||||
cntx->authenticated = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue