plain

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package plain provides PLAIN sasl authentication as specified in RFC4616.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Plain

func Plain(authFn func(context.Context) (Auth, error)) sasl.Mechanism

Plain returns a sasl mechanism that will call authFn whenever sasl authentication is needed. The returned Auth is used for a single session.

Types

type Auth

type Auth struct {
	// Zid is an optional authorization ID to use in authenticating.
	Zid string

	// User is username to use for authentication.
	User string

	// Pass is the password to use for authentication.
	Pass string
	// contains filtered or unexported fields
}

Auth contains information for authentication.

Jump to

Keyboard shortcuts

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