mfa

package
v0.0.0-...-20a8e94 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigurationFields

func ConfigurationFields(providerType string) []object.ProviderConfigurationField

func GetMfaTypes

func GetMfaTypes() []string

Types

type Provider

type Provider interface {
	GetConfigurationFields() []object.ProviderConfigurationField
	ValidateConfigurationFields() error
	GenerateUserConfig(username string) (object.MFAProviderData, error)
	InitDataFlow(mfaConfig json.RawMessage) (map[string]any, error)
	ValidateDatFlow(mfaConfig json.RawMessage, data map[string]any) (bool, error)
}

func GetMFAProvider

func GetMFAProvider(provider object.Provider) (Provider, error)

Jump to

Keyboard shortcuts

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