none

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package none is used to exclude or bypass authentication mechanisms. When this Authenticator is used, NO authentication is provided

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

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

Authenticator is a structure used for "none" authentication

func New

func New(id uuid.UUID) *Authenticator

New returns a "none" Authenticator structure

func (*Authenticator) Authenticate

func (a *Authenticator) Authenticate(messages.Base) (messages.Base, bool, error)

Authenticate returns true because the none package offers no authentication

func (*Authenticator) Secret

func (a *Authenticator) Secret() ([]byte, error)

Secret returns an empty key because the none package offers no authentication and did not establish a secret

func (*Authenticator) String

func (a *Authenticator) String() string

String returns the name of the Authenticator type

Jump to

Keyboard shortcuts

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