auth

package
v0.0.7-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAuthenticationFailed = errors.New("platform: authentication failed")
)

Functions

This section is empty.

Types

type PlatformAuthenticator

type PlatformAuthenticator interface {
	Authenticate(password []byte) error
	Prompt() []byte
	Provision(cn string, password, caPassword []byte) error
}

func NewYubiKeyAuthenticator

func NewYubiKeyAuthenticator(
	logger *logging.Logger,
	clientID string,
	secretKey keystore.Password) (PlatformAuthenticator, error)

type YubiAuth

type YubiAuth struct {
	PlatformAuthenticator
	// contains filtered or unexported fields
}

func (*YubiAuth) Authenticate

func (yubiauth *YubiAuth) Authenticate(otp []byte) error

func (*YubiAuth) Prompt

func (yubiauth *YubiAuth) Prompt() []byte

Jump to

Keyboard shortcuts

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