yubikey

package
v0.27.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MFAYubikey

type MFAYubikey struct {
	ClientID  string `yaml:"client_id"`
	SecretKey string `yaml:"secret_key"`
}

func New

func New() *MFAYubikey

func (*MFAYubikey) Configure

func (m *MFAYubikey) Configure(yamlSource []byte) (err error)

Configure loads the configuration for the Authenticator from the global config.yaml file which is passed as a byte-slice. If no configuration for the Authenticator is supplied the function needs to return the plugins.ErrProviderUnconfigured

func (MFAYubikey) ProviderID

func (m MFAYubikey) ProviderID() (id string)

ProviderID needs to return an unique string to identify this special MFA provider

func (MFAYubikey) ValidateMFA

func (m MFAYubikey) ValidateMFA(res http.ResponseWriter, r *http.Request, user string, mfaCfgs []plugins.MFAConfig) error

ValidateMFA takes the user from the login cookie and performs a validation against the provided MFA configuration for this user

Jump to

Keyboard shortcuts

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