mockauthn

package
v0.0.0-...-98cd694 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	mock.Mock
}

Authenticator is a mock Authenticator.

func (*Authenticator) CredentialsAreValid

func (m *Authenticator) CredentialsAreValid(ctx context.Context, hash, password, totpSecret, totpCode string) (bool, error)

ValidateLogin satisfies our authenticator interface.

func (*Authenticator) HashPassword

func (m *Authenticator) HashPassword(ctx context.Context, password string) (string, error)

HashPassword satisfies our authenticator interface.

Jump to

Keyboard shortcuts

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