-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 SASL SCRAM-SHA-512 and SCRAM-SHA-256 mechanismes #1295
Conversation
Thanks for contributing! Could you please sign CLA to unblock this? 🙏 |
Hi ! I signed the CLA but I could not get the recheck to run. |
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.
you seems to have committed a binary file with this push, is that intentional?
broker.go
Outdated
if err := c.Begin(b.conf.Net.SASL.User, b.conf.Net.SASL.Password, b.conf.Net.SASL.SCRAMAuthzID); err != nil { | ||
return fmt.Errorf("failed to start SCRAM exchange with the server: %s", err.Error()) | ||
} | ||
msg, err := c.Step("") |
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.
[nitpicky] It helps readability to add a newline after a block even inside a function.
I have fixed according to you comments. I have also remove the example which I will be submitting in another PR. Thank you :) |
This is a mistake. My bad. |
You might have to write more tests too. Also is there anyone who can look at SCRAM part of PR? |
Thanks for contributing this! And thanks Varun for reviewing 👍 |
Thank you very much! |
@bai : Hi, any release plan for this feature? |
I'll cut one early next week. |
@bai when can you cut a release? |
looking forward to a new release |
Will do sir. |
Is this ready to be used? |
Yes It has been released but you might want to wait for this #1349 to be in a release as it introduces a backward incompatible change. |
@bai question: could you elaborate on the reasoning for using |
The scram client is stateful and cannot be shared by multiple goroutines/connections. The function creates a new instance for each connection. |
Understood, but is there an actual implementation of the client in this library that can be used? The examples import another 3rd party lib |
No there is no default client builder function. You should use that package
like in the example.
Le mer. 29 janv. 2020 à 20:20, Yuri Shkuro <notifications@github.com> a
écrit :
Understood, but is there an actual implementation of the client in this
library that can be used? The examples import another 3rd party lib "
github.com/xdg/scram".
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1295>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAE47VRM2S4ACBL32D7TLNTRAHJIVANCNFSM4G2T7PEQ>
.
--
Sent from Gmail Mobile
|
@bai question: I'm wondering why we don't make the client generator in the example used as the default |
@iyedbennour and others: Thanks a lot for all about SCRAM. Linked to: |
Hi ! I would like to add SCRAM-SHA-512 and SCRAM-SHA-256 SASL mechanismes. We are already using this fork in production.