xmpp: mellium.im/xmpp/sasl2 Index | Files

package sasl2

import "mellium.im/xmpp/sasl2"

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.


Package Files



const (
    NS = "urn:xmpp:sasl:0"

Namespaces used by SASL2.

func SASL Uses

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.


feature may provide a security layer, but is not byte precise.

Package sasl2 imports 12 packages (graph). Updated 2019-01-19. Refresh now. Tools for package owners.