duo

package
v0.0.0-...-649aced Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorDuoCommunication   = errors.New("unable to communicate with Duo")
	ErrorDuoMfaNotAllow     = errors.New("MFA was not allowed")
	ErrorDuoArgsError       = errors.New("there was an error parsing arguments for Duo push request")
	ErrorDuoPushError       = errors.New("there was an error sending a Duo push request")
	ErrorCannotFindSid      = errors.New("Cannot find sid")
	ErrorHTTPBodyError      = errors.New("Unable to read http response body")
	ErrorJSONMarshalError   = errors.New("Unable to marshal json")
	ErrorJSONUnmarshalError = errors.New("Unable to unmarshal json")
)

Functions

This section is empty.

Types

type Duo

type Duo struct {
	// contains filtered or unexported fields
}

Duo scripts the Duo Web API interaction

func New

func New() Duo

New returns a new Duo client that uses the provided logger

func (*Duo) SendPush

func (d *Duo) SendPush(txSignature, stateToken, callbackURL, apiHostName string) (string, error)

SendPush emulates the workflow of the Duo WebAPI and sends the

requesting user a push to the device set as "phone1"

Jump to

Keyboard shortcuts

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