Documentation ¶
Overview ¶
Package sasl2 is an experimental implementation of XEP-0388: Extensible SASL Profile.
BE ADVISED: This API is incomplete and is subject to change. Core functionality of this package is missing, and the entire package may be removed at any time.
Index ¶
Constants ¶
const (
NS = "urn:xmpp:sasl:0"
)
Namespaces used by SASL2.
Variables ¶
This section is empty.
Functions ¶
func SASL ¶
func SASL(identity, password string, mechanisms ...sasl.Mechanism) xmpp.StreamFeature
SASL returns a stream feature for performing authentication using the Simple Authentication and Security Layer (SASL) as defined in RFC 4422. It panics if no mechanisms are specified. The order in which mechanisms are specified will be the preferred order, so stronger mechanisms should be listed first.
Identity is used when a user wants to act on behalf of another user. For instance, an admin might want to log in as another user to help them troubleshoot an issue. Normally it is left blank and the localpart of the Origin JID is used.
Types ¶
This section is empty.
Notes ¶
Bugs ¶
feature may provide a security layer, but is not byte precise.