Documentation ¶
Overview ¶
package auth provides a common interface an registry for transforming passwords into a secure form.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compute ¶
Compute takes a supplied value and transforms it into an authentication challenge using the supplied authtype.
func IsInvalidType ¶
IsInvalidType checks whether or not an error indicates an invalid auth type.
func Register ¶
func Register(name string, cv ComputerVerifier) error
Register is called by the init() functions of authentication modules to register those modules at run time. Supplied names must be unique.
Types ¶
type Computer ¶
Computer objects can take a user-supplied value and compute an authentication challenge
type ComputerVerifier ¶
ComputerVerifier objects implement both Computer and Verifier functionality.
type InvalidType ¶
type InvalidType interface {
IsInvalidType() bool
}
Click to show internal directories.
Click to hide internal directories.