Redis support a separate authentication module

39 views
Skip to first unread message

令照辉

unread,
Jan 3, 2022, 10:53:03 AMJan 3
to Redis DB
hi,all:
   Redis can support a separate authentication module?

   An authentication module that facilitates developers to meet their business needs, such as Kerberos authentication

Viktor Söderqvist

unread,
Jan 9, 2022, 1:40:25 PMJan 9
to redi...@googlegroups.com
Sorry for double post.

Update: It is actually possible to rewrite the calls to AUTH to use your
custom auth command. You need to use command filters.

I don't know why the RegisterCommandFilter function is not visible in
the Modules API docs. At least it is in the Redis source code in
src/modules.c.

Viktor

On 2022-01-09 19:34, Viktor Söderqvist wrote:
> Hi!
>
> Check out the ACL section in the Modules API:
> https://redis.io/topics/modules-api-ref#modules-acl-api
>
> Using this and the CreateCommand API, it's possible to create a module
> which provides a custom authentication command like MY-KERBEROS-AUTH and
> then your clients need to use this instead of AUTH.
>
> If you want to use MY-KERBEROS-AUTH instead of AUTH, you can create a
> command filter using RegisterCommandFilter (I don't know why it's not
> visible in the API docs, but
>
> It is currently not possible to replace the backend used by the AUTH
> command. If you want that, you need to create an issue on GitHub.
>
> Cheers,
> Viktor
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Redis DB" group.
>> To unsubscribe from this group and stop receiving emails from it, send
>> an email to redis-db+u...@googlegroups.com
>> <mailto:redis-db+u...@googlegroups.com>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/redis-db/29ca9d7c-c241-433d-b7d4-0b137d74e411n%40googlegroups.com
>> <https://groups.google.com/d/msgid/redis-db/29ca9d7c-c241-433d-b7d4-0b137d74e411n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>
Reply all
Reply to author
Forward
0 new messages