-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add support for Auth with username & password (Redis 6) #1097
Comments
I am able to get this worked by passing below in new Redis({})... Hope this helps.
|
@techpanga is seems like it can work as a workaround, but it doesn't feel like good solution for the long term |
@techpanga also it seems like all the user must have
|
@gkorland , Yes. it is workaround only. Thank you. |
Hey @gkorland @techpanga, actually giving For the wdyt? |
@luin This workaround only works if you're initializing ioredis using the However, we're initializing ioredis using the url string approach, passing in something like I'd be happy to submit a PR for this that would fix the the URL string parsing as well as adding an extra optional option Let me know! |
Yeah gotcha. PR is welcome
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Asyrique Thevendran <notifications@github.com>
Sent: Tuesday, May 5, 2020 2:40:28 PM
To: luin/ioredis <ioredis@noreply.github.com>
Cc: Zihua Li <i@zihua.li>; Mention <mention@noreply.github.com>
Subject: Re: [luin/ioredis] Add support for Auth with username & password (Redis 6) (#1097)
@luin<https://github.com/luin> This workaround only works if you're initializing ioredis using the new Redis({options})approach and passing in the password key in the options object.
However, we're initializing ioredis using the url string approach, passing in something like redis://foo:bar@somehost:someport, and this now fails (previously with Redis <6, we'd pass in the password without a user, i.e. redis://:bar@somehost:someport).
I'd be happy to submit a PR for this that would fix the the URL string parsing as well as adding an extra optional option user to the options object, if you're not already working on it.
Let me know!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#1097 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAE3H7RL4L3YD45I6ETXAQDRP6YFZANCNFSM4MCRP4RQ>.
|
🎉 This issue has been resolved in version 4.17.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
is this also supported in the |
A workaround would be to use a connection string RedisModule.forRoot({
type: 'single',
url: 'redis://default:password@localhost:6379',
}), |
No description provided.
The text was updated successfully, but these errors were encountered: