external

package
v0.0.0-...-15ac6bc Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Implementation of SASL EXTERNAL (RFC 4422)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credential

type Credential struct {
	Username string
	Cert     []byte
}

func NewCredential

func NewCredential(username string, cert []byte) *Credential

keeps the sha hash of the certificate (the fingerprint)

func (*Credential) Check

func (c *Credential) Check(username string, fingerprint [sha256.Size]byte) bool

type External

type External struct {
	// contains filtered or unexported fields
}

func New

func New(db *sql.DB, client *client.Client) *External

func (*External) Authn

func (e *External) Authn() string

func (*External) Next

func (e *External) Next([]byte) (challenge []byte, err error)

Jump to

Keyboard shortcuts

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