Documentation ¶
Overview ¶
Package mfa provides methods for tracking per-user MFA configurations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is an object for tracking users and their OTP secrets. It uses the configured secrets backend for storage.
func NewManager ¶
func NewManager(secrets *secrets.SecretEngine) *Manager
NewManager returns a new MFA manager with the given secrets engine.
func (*Manager) DeleteUserSecret ¶
DeleteUserSecret will remove OTP data for the given username.
func (*Manager) GetMFAUsers ¶
GetMFAUsers will return a map of all MFA user names and whether they have been verified.
func (*Manager) GetUserMFAStatus ¶
GetUserMFAStatus will retrieve the OTP secret for the given user, and whether it has been verified. If there is no secret for this user, a UserNotFound error is returned.
Click to show internal directories.
Click to hide internal directories.