Open SamWhited opened 8 years ago
I'm also interested in a common sasl
package. I've also already built one for my go-imap package: https://github.com/emersion/go-sasl
If it's not possible to include a new package in the standard library, maybe we can at least have a common API?
I'm also interested in a common sasl
package, need one for STUN implementation (for performing SASLprep)
@ernado slightly off topic, but you don't need a SASL package for SASLprep, you can use PRECIS which should be mostly compatible with the exception of a few edge cases (this has replaced stringprep).
Any news on it?
I'd like to see a package that provides RFC 4422 Simple Authentication and Security Layer (SASL) support in the
golang.org/x/
package tree (possibly asgolang.org/x/crypto/sasl
).This could potentially be used under the covers in the
net/smtp
package in the future, and would be broadly useful for people implementing other protocols (IMAP, AMQP, IRC, XMPP, memcached, POP, etc.). It would provide a way for varoius packages to share implementations of SASL mechanisms and not introduce problems by always reinventing the wheel every time something needs aSCRAM-SHA-1
implementation.The API I had in mind (and have an implementation of) is something like this:
EDIT: I pushed my initial, experimental, implementation with an API similar to this: https://godoc.org/mellium.im/sasl