http

package
v0.0.0-...-72724d7 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrBadKSMResponse is simple error to propagate up the call stack
	ErrBadKSMResponse = errors.New("bad response from KSM")
)

Functions

This section is empty.

Types

type KSMClient

type KSMClient struct {
	Endpoint string
	Logger   zerolog.Logger
}

KSMClient is validating token over the network to a specific endpoint

func NewClient

func NewClient(options ...func(*KSMClient)) *KSMClient

NewClient creates a new instance with sensible defaults

func (*KSMClient) Decrypt

func (k *KSMClient) Decrypt(otp string) (*yubikey.Token, error)

Decrypt delegate the decryption of an otp token to a remote endpoint over HTTP

Jump to

Keyboard shortcuts

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