sasl

package
v0.0.0-...-6a9645c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidKey error = errors.New("invalid key")
	ErrSaslFail   error = errors.New("sasl failed")
)

Functions

This section is empty.

Types

type Mechanism

type Mechanism interface {
	// Next returns the next challenge to be sent to the client. If both
	// challenge and err are nil, it is assumed that the authentication is
	// completed and successful.
	Next(clientResponse []byte) (challenge []byte, err error)

	// Authn returns the authentication string associate with this
	// specific mechanism instance. It may be unsafe to call Authn before
	// the mechanism has completed.
	Authn() string
}

type None

type None struct{}

None is a placeholder mechanism for clients that are not authenticated with SASL.

func (None) Authn

func (n None) Authn() string

func (None) Next

func (n None) Next([]byte) ([]byte, error)

Directories

Path Synopsis
Implementation of SASL EXTERNAL (RFC 4422)
Implementation of SASL EXTERNAL (RFC 4422)
Implementation of SASL PLAIN (RFC 4616)
Implementation of SASL PLAIN (RFC 4616)
Implementation of SCRAM (RFC 5802)
Implementation of SCRAM (RFC 5802)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL