Documentation
¶
Index ¶
- func AddRegistrationToken(token, username string) error
- func Authenticate(address, code string) (err error)
- func DeleteDevice(address string) error
- func DeleteRegistrationToken(token string) error
- func GenerateToken(username string) (token string, err error)
- func GetRegistrationToken(token string) (username string, err error)
- func GetRegistrationTokens() (map[string]string, error)
- func IsEnforcingMFA(address string) bool
- func Load(path, issuer string, lockout int) error
- func SetAttempts(address string, attempts int) error
- func SetMFAEnforcing(address string) error
- func ShowSecret(address string) (*otp.Key, error)
- type Device
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRegistrationToken ¶
func Authenticate ¶
func DeleteDevice ¶
func DeleteRegistrationToken ¶
func GenerateToken ¶
func GetRegistrationToken ¶
func GetRegistrationTokens ¶
Returns list of tokens in a map of token : username
func IsEnforcingMFA ¶
func SetAttempts ¶
func SetMFAEnforcing ¶
Types ¶
type Device ¶
func CreateMFAEntry ¶
func GetDeviceByIP ¶
func GetDeviceByUsername ¶
func GetDevices ¶
Click to show internal directories.
Click to hide internal directories.