Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnforceChallenges ¶
func EnforceChallenges(auth *data.Authentication, specs []ChallengeSpec) error
Types ¶
type Captcha ¶
func NewCaptchaHandler ¶
type CaptchaHandler ¶
type CaptchaHandler struct {
// contains filtered or unexported fields
}
func (*CaptchaHandler) Verify ¶
func (c *CaptchaHandler) Verify(token string) bool
type ChallengeSpec ¶
type ChallengeSpec struct {
Type ChallengeType `json:"type"`
MaxAge time.Duration `json:"maxAge"`
}
type ChallengeType ¶
type ChallengeType string
const ( PasswordChallenge ChallengeType = "password" CaptchaChallenge ChallengeType = "captcha" )
Click to show internal directories.
Click to hide internal directories.