Documentation ¶
Overview ¶
Package duo provides a Duo MFA handler to authenticate users with Duo. This handler is registered as the "duo" type in mfa_config.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DuoHandler ¶
func DuoHandler(req *logical.Request, d *framework.FieldData, resp *logical.Response) ( *logical.Response, error)
DuoHandler interacts with the Duo Auth API to authenticate a user login request. If successful, the original response from the login backend is returned.
func DuoRootPaths ¶
func DuoRootPaths() []string
DuoRootPaths returns the paths that are used to configure Duo.
Types ¶
type AuthClient ¶
type AuthClient interface { Preauth(options ...func(*url.Values)) (*authapi.PreauthResult, error) Auth(factor string, options ...func(*url.Values)) (*authapi.AuthResult, error) }
func GetDuoAuthClient ¶
func GetDuoAuthClient(req *logical.Request, config *DuoConfig) (AuthClient, error)
Click to show internal directories.
Click to hide internal directories.