Documentation
¶
Overview ¶
Package sasl provides SASL authentication mechanism selection and parsing utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MechanismPrecedence = []Mechanism{ MechanismGSSAPI, MechanismXOAuth2, MechanismCramMD5, MechanismPlain, MechanismLogin, }
MechanismPrecedence lists mechanisms from strongest to weakest for auto-selection.
Functions ¶
This section is empty.
Types ¶
type Mechanism ¶
type Mechanism string
Mechanism represents a SASL authentication mechanism.
func ParseMechanisms ¶
ParseMechanisms parses the SASL mechanisms from an IMAP CAPABILITY response. It looks for capability tokens of the form "AUTH=<MECHANISM>" (case-insensitive, per RFC 3501 §2.6 which states capability names are not case-sensitive).
Click to show internal directories.
Click to hide internal directories.