MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / RM_AuthenticateClientWithUser

Function RM_AuthenticateClientWithUser

src/module.cpp:6768–6770  ·  view source on GitHub ↗

Authenticate the current context's user with the provided redis acl user. * Returns REDISMODULE_ERR if the user is disabled. * * See authenticateClientWithUser for information about callback, client_id, * and general usage for authentication. */

Source from the content-addressed store, hash-verified

6766 * See authenticateClientWithUser for information about callback, client_id,
6767 * and general usage for authentication. */
6768int RM_AuthenticateClientWithUser(RedisModuleCtx *ctx, RedisModuleUser *module_user, RedisModuleUserChangedFunc callback, void *privdata, uint64_t *client_id) {
6769 return authenticateClientWithUser(ctx, module_user->user, callback, privdata, client_id);
6770}
6771
6772/* Authenticate the current context's user with the provided redis acl user.
6773 * Returns REDISMODULE_ERR if the user is disabled or the user does not exist.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected