phoenixframework / phoenix_pubsub_redis

The Redis PubSub adapter for the Phoenix framework
175 stars 66 forks source link

add `username` as a redis-server option #69

Open luca-tansini opened 1 year ago

luca-tansini commented 1 year ago

At the moment it is only possible to specify a username to authenticate to the redis server as part of the url option. Unfortunately, due to the Keyword.take(opts, @redis_opts) at line 72 the username taken from the url is actually discarded, and the default one is always used instead.

In this PR I added the username as an option, both taken from the url as well as specified as a separate option.

chess4ever commented 6 months ago

@chrismccord is it possible to merge this fix?