Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxOpenRetries = 10 RetryDelayMS = 200 * time.Millisecond )
View Source
const (
ActionVerify = "verify"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DUODevice ¶
type DUODevice struct { DeviceName string // contains filtered or unexported fields }
DUODevice is implementation of MFADevice for SMS
type ErrUnknownStatus ¶
type ErrUnknownStatus struct {
Status string
}
func (*ErrUnknownStatus) Error ¶
func (e *ErrUnknownStatus) Error() string
type FIDODevice ¶
type FIDODevice struct { }
FIDODevice is implementation of MFADevice for SMS
type FidoClient ¶
type FidoClient struct { ChallengeNonce string AppId string Version string Device u2fhost.Device KeyHandle string StateToken string }
func NewFidoClient ¶
func NewFidoClient(challengeNonce, appId, version, keyHandle, stateToken string) (FidoClient, error)
func (*FidoClient) ChallengeU2f ¶
func (d *FidoClient) ChallengeU2f() (*SignedAssertion, error)
type Payload ¶
type Payload struct { StateToken string `json:"stateToken"` PassCode string `json:"passCode,omitempty"` }
Payload is a common request body that is sent as part of mfa validation
type SMSDevice ¶
type SMSDevice struct {
// contains filtered or unexported fields
}
SMSDevice is implementation of MFADevice for SMS
type SignedAssertion ¶
type TOTPDevice ¶
type TOTPDevice struct {
// contains filtered or unexported fields
}
TOTPDevice is the implementation of MFADevice
Click to show internal directories.
Click to hide internal directories.