Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MFAYubikey ¶
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
Click to show internal directories.
Click to hide internal directories.