challenge

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 5 Imported by: 7

Documentation

Overview

Package challenge defines an interface for a dynamic challenge password cache.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

Middleware wraps next in a CSRSigner that verifies and invalidates the challenge.

Types

type Store

type Store interface {
	// SCEPChallenge generates a new challenge password.
	SCEPChallenge() (string, error)
	Validator
}

Store is a dynamic challenge password cache.

type Validator added in v2.3.0

type Validator interface {
	// HasChallenge validates pw as valid.
	HasChallenge(pw string) (bool, error)
}

Validator validates challenge passwords.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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