-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
added username+password auth support #310
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@scott-ling Thanks for working on this!
I just left one comment, other than that it looks good overall! 👍
@@ -24,6 +24,7 @@ export interface RedisConnectionOptions { | |||
tls?: boolean; | |||
db?: number; | |||
password?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you run deno fmt
on this file?
$ deno fmt connection.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done and fixed, pushing shortly darn deno fmt bit me again...
there ya go, sorry about that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the contribution! 👍
I'll release a new version in the coming days
tx, look forward to it.
…On Jun 3 2022, at 2:38 pm, Yuki Tanaka ***@***.***> wrote:
@uki00a approved this pull request.
LGTM, thanks for the contribution! 👍
I'll release a new version in the coming days
—
Reply to this email directly, view it on GitHub (#310 (review)), or unsubscribe (https://github.com/notifications/unsubscribe-auth/ATXWUNUHO2NH56NHSYTNDNLVNIDF5ANCNFSM5XYBIITA).
You are receiving this because you were mentioned.
|
Released in v0.26.0! |
great to know, will look at other PR and Issues tomorrow, see where else I can help.
…On Jun 4 2022, at 1:26 pm, Yuki Tanaka ***@***.***> wrote:
Released in v0.26.0 (https://github.com/denodrivers/redis/releases/tag/v0.26.0)!
—
Reply to this email directly, view it on GitHub (#310 (comment)), or unsubscribe (https://github.com/notifications/unsubscribe-auth/ATXWUNXMGDFKKXZ5HSROGRTVNNDOTANCNFSM5XYBIITA).
You are receiving this because you were mentioned.
|
Fixes issue #300
You can now use redis client with cloud hosted redis (redis enterprise/cloud stack) or any other redis server that has user+password authentication.
PR is not breaking, but has changed RedisConnectionOptions to support an optional username: string property.
Tests not included since, only tests that make sense require a redis instances setting up with:
I did not see mock redis server for this in tests, and existing test for authentication is only checking if a parameter has been passed and is valid. Which exception handling catches anyway.
ps. been a while since I did a PR. (also note, I have this code in production, be nice to use official repo for this. )