presharedkey

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PresharedKeyAuthenticator

type PresharedKeyAuthenticator struct {
	ValidKeys map[string]struct{}
}

func NewPresharedKeyAuthenticator

func NewPresharedKeyAuthenticator(validKeys []string) (*PresharedKeyAuthenticator, error)

func (*PresharedKeyAuthenticator) Authenticate

func (pka *PresharedKeyAuthenticator) Authenticate(ctx context.Context) (*authn.AuthClaims, error)

func (*PresharedKeyAuthenticator) Close

func (pka *PresharedKeyAuthenticator) Close()

Jump to

Keyboard shortcuts

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